Skip to content

Commit 82e4e78

Browse files
little-arhatwycats
authored andcommitted
Update source code to new rustc
1 parent 41d0e62 commit 82e4e78

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

src/sys/event.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ mod ffi {
1919
}
2020

2121
// Bug in rustc, cannot determine that kevent is #[repr(C)]
22-
#[allow(ctypes)]
22+
#[allow(improper_ctypes)]
2323
extern {
2424
pub fn kqueue() -> c_int;
2525

src/sys/eventfd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub fn eventfd(initval: uint, flags: EventFdFlag) -> SysResult<Fd> {
2020
}
2121

2222
if eventfd.is_null() {
23-
fail!("eventfd unsupported on this platform");
23+
panic!("eventfd unsupported on this platform");
2424
}
2525

2626
let res = unsafe {

src/sys/signal.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ mod ffi {
333333
use super::signal::{sigaction, sigset_t};
334334
use pthread::Pthread;
335335

336+
#[allow(improper_ctypes)]
336337
extern {
337338
pub fn sigaction(signum: libc::c_int,
338339
act: *const sigaction,

src/sys/socket.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ mod consts {
192192
pub const SO_TYPE: SockOpt = 0x1008;
193193
pub const SO_WANTMORE: SockOpt = 0x4000;
194194
pub const SO_WANTOOBFLAG: SockOpt = 0x8000;
195-
#[allow(type_overflow)]
195+
#[allow(overflowing_literals)]
196196
pub const SO_RESTRICT_DENYSET: SockOpt = 0x80000000;
197197

198198
// Socket options for TCP sockets
@@ -362,7 +362,7 @@ mod sa_helpers {
362362
}
363363

364364
pub fn recvfrom(sockfd: Fd, buf: &mut [u8]) -> SysResult<(uint, SockAddr)> {
365-
let mut saddr : sockaddr_storage = unsafe { mem::zeroed() };
365+
let saddr : sockaddr_storage = unsafe { mem::zeroed() };
366366
let mut len = mem::size_of::<sockaddr_storage>() as socklen_t;
367367

368368
let ret = unsafe {

0 commit comments

Comments
 (0)