diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2014-06-17 17:14:55 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2014-06-18 01:27:42 -0400 |
| commit | bb0a42745f7a951c298b7bc2e07f7ba1fee14100 (patch) | |
| tree | 0ba014610e3d3160d8ef17e337634d94753d33ea /src/libgreen | |
| parent | 2fd618e77accd37426819952ad443e50bb3c9015 (diff) | |
| download | rust-bb0a42745f7a951c298b7bc2e07f7ba1fee14100.tar.gz rust-bb0a42745f7a951c298b7bc2e07f7ba1fee14100.zip | |
fix signatures of mmap-related functions from libc
Diffstat (limited to 'src/libgreen')
| -rw-r--r-- | src/libgreen/stack.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |
