]> git.proxmox.com Git - rustc.git/blobdiff - src/libstd/sys/windows/handle.rs
New upstream version 1.12.0+dfsg1
[rustc.git] / src / libstd / sys / windows / handle.rs
index 74546bb893bea8bbde6cc36fc802b9cbb7d71cfb..d10abae2865271dadfc6af7a3c1f3fa62cd41da9 100644 (file)
@@ -46,10 +46,10 @@ impl Handle {
 
     pub fn new_event(manual: bool, init: bool) -> io::Result<Handle> {
         unsafe {
-            let event = c::CreateEventW(0 as *mut _,
+            let event = c::CreateEventW(ptr::null_mut(),
                                         manual as c::BOOL,
                                         init as c::BOOL,
-                                        0 as *const _);
+                                        ptr::null());
             if event.is_null() {
                 Err(io::Error::last_os_error())
             } else {