about summary refs log tree commit diff
path: root/src/libstd/sync
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/sync
parentfce792249e72a181f2ad52413b25b1db643c371f (diff)
downloadrust-802d41fe235794d84084897ae6187ee5cc27dd95.tar.gz
rust-802d41fe235794d84084897ae6187ee5cc27dd95.zip
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/sync')
-rw-r--r--src/libstd/sync/deque.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sync/deque.rs b/src/libstd/sync/deque.rs
index e99e9ef0940..e740862fddf 100644
--- a/src/libstd/sync/deque.rs
+++ b/src/libstd/sync/deque.rs
@@ -389,7 +389,7 @@ impl<T: Send> Buffer<T> {
 impl<T: Send> Drop for Buffer<T> {
     fn drop(&mut self) {
         // It is assumed that all buffers are empty on drop.
-        unsafe { libc::free(self.storage as *libc::c_void) }
+        unsafe { libc::free(self.storage as *mut libc::c_void) }
     }
 }