diff options
author | gnzlbg <gonzalobg88@gmail.com> | 2018-01-19 12:09:12 +0100 |
---|---|---|
committer | gnzlbg <gonzalobg88@gmail.com> | 2018-01-19 12:09:12 +0100 |
commit | 049b43e720567588c45af182a8f160d225436524 (patch) | |
tree | 6472524752fc30902a4223dc394a848323f06b3b | |
parent | 9908dcea17fe179675a10f71b1ee30147c252d3e (diff) | |
download | rust-libc-049b43e720567588c45af182a8f160d225436524.tar.gz |
make malloc_usable size take a *mut instead of *const
-rw-r--r-- | src/unix/notbsd/linux/other/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unix/notbsd/linux/other/mod.rs b/src/unix/notbsd/linux/other/mod.rs index 96bfa1268a..740dd8da41 100644 --- a/src/unix/notbsd/linux/other/mod.rs +++ b/src/unix/notbsd/linux/other/mod.rs @@ -611,7 +611,7 @@ extern { val: ::c_int) -> ::c_int; pub fn sched_getcpu() -> ::c_int; pub fn mallinfo() -> ::mallinfo; - pub fn malloc_usable_size(ptr: *const ::c_void) -> ::size_t; + pub fn malloc_usable_size(ptr: *mut ::c_void) -> ::size_t; pub fn memfd_create(name: *const c_char, flags: ::c_uint) -> ::c_int; pub fn getauxval(type_: ::c_ulong) -> ::c_ulong; } |