diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-01-07 02:58:28 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-01-07 02:58:28 -0500 |
commit | 74998fbec13cb2d1c6a0952141b90f4216ab89e6 (patch) | |
tree | c96ad98a0535e8694535573623a3f31ed1837433 /src | |
parent | 3500555db382e25b13c0832e5af13b6796cfca43 (diff) | |
download | musl-74998fbec13cb2d1c6a0952141b90f4216ab89e6.tar.gz musl-74998fbec13cb2d1c6a0952141b90f4216ab89e6.tar.bz2 musl-74998fbec13cb2d1c6a0952141b90f4216ab89e6.tar.xz musl-74998fbec13cb2d1c6a0952141b90f4216ab89e6.zip |
fix signedness of pgoff argument to remap_file_pages
both the kernel and glibc agree that this argument is unsigned; the
incorrect type ssize_t came from erroneous man pages.
Diffstat (limited to 'src')
-rw-r--r-- | src/linux/remap_file_pages.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linux/remap_file_pages.c b/src/linux/remap_file_pages.c index f95c4cc3..a9699ce2 100644 --- a/src/linux/remap_file_pages.c +++ b/src/linux/remap_file_pages.c @@ -2,7 +2,7 @@ #include <sys/mman.h> #include "syscall.h" -int remap_file_pages(void *addr, size_t size, int prot, ssize_t pgoff, int flags) +int remap_file_pages(void *addr, size_t size, int prot, size_t pgoff, int flags) { return syscall(SYS_remap_file_pages, addr, size, prot, pgoff, flags); } |