Skip to content

Commit

Permalink
Remove revents from PollFd::new
Browse files Browse the repository at this point in the history
  • Loading branch information
Susurrus committed Feb 28, 2017
1 parent 70a1bd4 commit 57f850b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/poll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ pub struct PollFd {
}

impl PollFd {
pub fn new(fd: libc::c_int, events: EventFlags, revents: EventFlags) -> PollFd {
pub fn new(fd: libc::c_int, events: EventFlags) -> PollFd {
PollFd {
pollfd: libc::pollfd {
fd: fd,
events: events.bits(),
revents: revents.bits(),
revents: EventFlags::empty().bits(),
},
}
}
Expand Down

0 comments on commit 57f850b

Please sign in to comment.