From a2f11be3c17aaf611258c5cbbda3593f0a9755bf Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Mon, 13 Aug 2012 14:00:29 +0200 Subject: [PATCH] mprotect.2: 'addr' argument is not const As reported by Rasmus: Both my system's man-pages (3.22) and the latest online (3.41) show: int mprotect(const void *addr, size_t len, int prot); as the prototype for mprotect(2). However, POSIX [1] and the actual sys/mman.h (on all the systems I checked) do not have the const qualifier on the first argument. Reported-by: Rasmus Villemoes Signed-off-by: Michael Kerrisk --- man2/mprotect.2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man2/mprotect.2 b/man2/mprotect.2 index b1b3bd508..0cef9dc14 100644 --- a/man2/mprotect.2 +++ b/man2/mprotect.2 @@ -36,7 +36,7 @@ mprotect \- set protection on a region of memory .nf .B #include .sp -.BI "int mprotect(const void *" addr ", size_t " len ", int " prot ); +.BI "int mprotect(void *" addr ", size_t " len ", int " prot ); .fi .SH DESCRIPTION .BR mprotect ()