diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2014-01-21 09:31:32 -0500 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2014-01-22 23:13:53 -0500 |
| commit | 802d41fe235794d84084897ae6187ee5cc27dd95 (patch) | |
| tree | 6cd1eecb0ec529673396040e2c43ad08941732e9 /src/libstd/libc.rs | |
| parent | fce792249e72a181f2ad52413b25b1db643c371f (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.rs | 2 |
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; |
