* src/mm/memory.c (memory_mprotect): Fixed signature, manpage is wrong
authorChristian Thalinger <twisti@complang.tuwien.ac.at>
Thu, 27 Sep 2007 16:23:47 +0000 (18:23 +0200)
committerChristian Thalinger <twisti@complang.tuwien.ac.at>
Thu, 27 Sep 2007 16:23:47 +0000 (18:23 +0200)
about the signature of mprotect.
* src/mm/memory.h: Likewise.

src/mm/memory.c
src/mm/memory.h

index b55a42457010a8bd48ae106199fe897e23df3c8a..1be484983769978db63bb694c011f0ee5dba219a 100644 (file)
@@ -170,7 +170,7 @@ void *memory_mmap_anon(void *addr, size_t len, int prot, int flags)
 
 *******************************************************************************/
 
-void memory_mprotect(const void *addr, size_t len, int prot)
+void memory_mprotect(void *addr, size_t len, int prot)
 {
        if (mprotect(addr, len, prot) != 0)
                vm_abort("memory_mprotect: mprotect failed: %s", strerror(errno));
index b7cdbe7046a0659a3d3c607c750f9bbcc9b7486a..672d0e377004c0c5f933a03761d7b0b36263e58c 100644 (file)
@@ -202,7 +202,7 @@ Some more macros:
 bool memory_init(void);
 
 void *memory_mmap_anon(void *addr, size_t len, int prot, int flags);
-void  memory_mprotect(const void *addr, size_t len, int prot);
+void  memory_mprotect(void *addr, size_t len, int prot);
 
 void *memory_cnew(s4 size);
 void  memory_cfree(void *p, s4 size);