summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authored@FreeBSD.org <ed@FreeBSD.org>2016-08-03 06:33:04 +0000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-08-24 15:00:02 +0200
commit08139e557be6b50cc87c4804293168644b7d6e97 (patch)
treea607895b1d309bc8cd53013bbad8e4c35a2cd893
parentc3df6d5155f0ffc3337991fbc1796952edf2cd82 (diff)
downloadcygnal-08139e557be6b50cc87c4804293168644b7d6e97.tar.gz
cygnal-08139e557be6b50cc87c4804293168644b7d6e97.tar.bz2
cygnal-08139e557be6b50cc87c4804293168644b7d6e97.zip
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!)
-rw-r--r--newlib/libc/sys/rtems/include/sys/mman.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/sys/rtems/include/sys/mman.h b/newlib/libc/sys/rtems/include/sys/mman.h
index 1fce96074..0894555fa 100644
--- a/newlib/libc/sys/rtems/include/sys/mman.h
+++ b/newlib/libc/sys/rtems/include/sys/mman.h
@@ -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);