From bb0a42745f7a951c298b7bc2e07f7ba1fee14100 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Tue, 17 Jun 2014 17:14:55 -0400 Subject: fix signatures of mmap-related functions from libc --- src/libgreen/stack.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libgreen/stack.rs') diff --git a/src/libgreen/stack.rs b/src/libgreen/stack.rs index 2e385f75e1d..526ce66b1ea 100644 --- a/src/libgreen/stack.rs +++ b/src/libgreen/stack.rs @@ -96,7 +96,7 @@ fn protect_last_page(stack: &MemoryMap) -> bool { // This may seem backwards: the start of the segment is the last page? // Yes! The stack grows from higher addresses (the end of the allocated // block) to lower addresses (the start of the allocated block). - let last_page = stack.data as *libc::c_void; + let last_page = stack.data as *mut libc::c_void; libc::mprotect(last_page, page_size() as libc::size_t, libc::PROT_NONE) != -1 } -- cgit 1.4.1-3-g733a5