about summary refs log tree commit diff
path: root/src/libnative/io/net.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libnative/io/net.rs')
-rw-r--r--src/libnative/io/net.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libnative/io/net.rs b/src/libnative/io/net.rs
index ba951cdef26..af7508ccbe9 100644
--- a/src/libnative/io/net.rs
+++ b/src/libnative/io/net.rs
@@ -543,7 +543,7 @@ impl TcpAcceptor {
 
         while !self.inner.closed.load(atomic::SeqCst) {
             match retry(|| unsafe {
-                libc::accept(self.fd(), ptr::mut_null(), ptr::mut_null())
+                libc::accept(self.fd(), ptr::null_mut(), ptr::null_mut())
             }) {
                 -1 if util::wouldblock() => {}
                 -1 => return Err(os::last_error()),
@@ -608,7 +608,7 @@ impl TcpAcceptor {
 
             if wsaevents.lNetworkEvents & c::FD_ACCEPT == 0 { continue }
             match unsafe {
-                libc::accept(self.fd(), ptr::mut_null(), ptr::mut_null())
+                libc::accept(self.fd(), ptr::null_mut(), ptr::null_mut())
             } {
                 -1 if util::wouldblock() => {}
                 -1 => return Err(os::last_error()),