mprotect(): Change prototype to comply to POSIX.

Our mprotect() function seems to take a "const void *" address to the
pages whose permissions need to be adjusted. POSIX uses "void *". Simply
stick to the POSIX one to prevent us from writing unportable code.

PR:		211423 (exp-run)
Tested by:	antoine@ (Thanks!)
This commit is contained in:
ed@FreeBSD.org 2016-08-03 06:33:04 +00:00 committed by Sebastian Huber
parent c3df6d5155
commit 08139e557b
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,7 @@ int mlock(const void *, size_t);
#define _MMAP_DECLARED
void * mmap(void *, size_t, int, int, int, off_t);
#endif
int mprotect(const void *, size_t, int);
int mprotect(void *, size_t, int);
int msync(void *, size_t, int);
int munlock(const void *, size_t);
int munmap(void *, size_t);