Replace 0 as *const/mut T with ptr::null/null_mut()

This commit is contained in:
we
2015-01-19 08:27:09 +03:00
parent 378fb5846d
commit 2c2480df5d
19 changed files with 65 additions and 55 deletions

View File

@@ -280,7 +280,7 @@ mod imp {
if align <= MIN_ALIGN {
libc::malloc(size as libc::size_t) as *mut u8
} else {
let mut out = 0 as *mut libc::c_void;
let mut out = ptr::null();
let ret = posix_memalign(&mut out,
align as libc::size_t,
size as libc::size_t);