Use null()/null_mut() instead of 0 as *const T/0 as *mut T
This commit is contained in:
parent
3903ea96f5
commit
06fb196256
22 changed files with 65 additions and 52 deletions
|
|
@ -72,7 +72,7 @@ impl Thread {
|
|||
|
||||
extern fn thread_start(main: *mut libc::c_void) -> *mut libc::c_void {
|
||||
unsafe { start_thread(main); }
|
||||
0 as *mut _
|
||||
ptr::null_mut()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue