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.
This commit is contained in:
Rich Felker 2014-01-07 02:58:28 -05:00
commit 74998fbec1
2 changed files with 2 additions and 2 deletions

View file

@ -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);
}