diff options
Diffstat (limited to 'src/sys/socket.rs')
-rw-r--r-- | src/sys/socket.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sys/socket.rs b/src/sys/socket.rs index 4d91bd0c..9bc49119 100644 --- a/src/sys/socket.rs +++ b/src/sys/socket.rs @@ -192,7 +192,7 @@ mod consts { pub const SO_TYPE: SockOpt = 0x1008; pub const SO_WANTMORE: SockOpt = 0x4000; pub const SO_WANTOOBFLAG: SockOpt = 0x8000; - #[allow(type_overflow)] + #[allow(overflowing_literals)] pub const SO_RESTRICT_DENYSET: SockOpt = 0x80000000; // Socket options for TCP sockets @@ -362,7 +362,7 @@ mod sa_helpers { } pub fn recvfrom(sockfd: Fd, buf: &mut [u8]) -> SysResult<(uint, SockAddr)> { - let mut saddr : sockaddr_storage = unsafe { mem::zeroed() }; + let saddr : sockaddr_storage = unsafe { mem::zeroed() }; let mut len = mem::size_of::<sockaddr_storage>() as socklen_t; let ret = unsafe { |