about summary refs log tree commit diff
path: root/src/libstd/libc.rs
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2014-01-21 09:31:32 -0500
committerDaniel Micay <danielmicay@gmail.com>2014-01-22 23:13:53 -0500
commit802d41fe235794d84084897ae6187ee5cc27dd95 (patch)
tree6cd1eecb0ec529673396040e2c43ad08941732e9 /src/libstd/libc.rs
parentfce792249e72a181f2ad52413b25b1db643c371f (diff)
libc: switch `free` to the proper signature
This does not attempt to fully propagate the mutability everywhere, but
gives new code a hint to avoid the same issues.
Diffstat (limited to 'src/libstd/libc.rs')
-rw-r--r--src/libstd/libc.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/libc.rs b/src/libstd/libc.rs
index 77ac226a7f1..a2aa182216a 100644
--- a/src/libstd/libc.rs
+++ b/src/libstd/libc.rs
@@ -3225,7 +3225,7 @@ pub mod funcs {
                 pub fn calloc(nobj: size_t, size: size_t) -> *c_void;
                 pub fn malloc(size: size_t) -> *mut c_void;
                 pub fn realloc(p: *mut c_void, size: size_t) -> *mut c_void;
-                pub fn free(p: *c_void);
+                pub fn free(p: *mut c_void);
                 pub fn exit(status: c_int) -> !;
                 // Omitted: atexit.
                 pub fn system(s: *c_char) -> c_int;