diff --git a/src/header/poll/mod.rs b/src/header/poll/mod.rs index 47c2b655ef68675876d02618a170248da4a93895..57fa9cf2b611808c7b19811f4d3c4af6b2cb7a12 100644 --- a/src/header/poll/mod.rs +++ b/src/header/poll/mod.rs @@ -10,7 +10,6 @@ pub const POLLERR: c_short = 0x008; pub const POLLHUP: c_short = 0x010; pub const POLLNVAL: c_short = 0x020; - pub type nfds_t = c_ulong; #[repr(C)] diff --git a/src/platform/redox/mod.rs b/src/platform/redox/mod.rs index 3750178c9092343bd89f5765d4e8a0f12ec250a1..4747dee4ea97f94925c9e11317d8f1715b2e5d32 100644 --- a/src/platform/redox/mod.rs +++ b/src/platform/redox/mod.rs @@ -730,11 +730,14 @@ impl Pal for Sys { fd.revents = 0; if fd.fd >= 0 && flags > 0 { - if event_file.write(&syscall::Event { - id: fd.fd as usize, - flags: flags, - data: 0, - }).is_err() { + if event_file + .write(&syscall::Event { + id: fd.fd as usize, + flags: flags, + data: 0, + }) + .is_err() + { return -1; } }