summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-06-27 20:26:18 +0000
committerEric Andersen <andersen@codepoet.org>2003-06-27 20:26:18 +0000
commit57713139e9ab6ca670cafe7a3fc2d739bcdc370d (patch)
tree22acadeab1424444f51c674c11ab8d906f8a7dd1 /libc/sysdeps/linux
parenta42a105966d05df2ce9afefc387c99ac919fdfc4 (diff)
Fix a couple of typos
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r--libc/sysdeps/linux/common/mmap64.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/common/mmap64.c b/libc/sysdeps/linux/common/mmap64.c
index 308a328bd..eaf914432 100644
--- a/libc/sysdeps/linux/common/mmap64.c
+++ b/libc/sysdeps/linux/common/mmap64.c
@@ -67,7 +67,7 @@ __ptr_t mmap64(__ptr_t addr, size_t len, int prot, int flags, int fd, __off64_t
#define __NR___syscall_mmap2 __NR_mmap2
static inline _syscall6(__ptr_t, __syscall_mmap2, __ptr_t, addr,
- size_t len, int, prot, int, flags, int, fd, off_t, offset);
+ size_t, len, int, prot, int, flags, int, fd, off_t, offset);
/* This is always 12, even on architectures where PAGE_SHIFT != 12. */
# ifndef MMAP2_PAGE_SHIFT
@@ -76,7 +76,6 @@ static inline _syscall6(__ptr_t, __syscall_mmap2, __ptr_t, addr,
__ptr_t mmap64(__ptr_t addr, size_t len, int prot, int flags, int fd, __off64_t offset)
{
- void *result;
if (offset & ((1 << MMAP2_PAGE_SHIFT) - 1)) {
__set_errno (EINVAL);
return MAP_FAILED;