diff options
author | Roma Sokolov <sokolov.r.v@gmail.com> | 2014-10-31 13:14:52 +0300 |
---|---|---|
committer | Roma Sokolov <sokolov.r.v@gmail.com> | 2014-10-31 13:14:52 +0300 |
commit | 69437208917ddbfce4fed1808e8330200780b01c (patch) | |
tree | 3cbdbabdd4783db593d054bf6360e10cd8f3101d /src/sys/socket.rs | |
parent | 4b339549d5b5840508ab13c1aec65c635ac1add7 (diff) | |
download | nix-69437208917ddbfce4fed1808e8330200780b01c.zip |
Update source code to new rustc
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 { |