Skip to content

Commit 4447d78

Browse files
author
Mathias Svensson
committed
Fix the inner type of EpollFlags
1 parent 7435cb6 commit 4447d78

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/sys/epoll.rs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,22 @@ use ::Error;
77

88
bitflags!(
99
#[repr(C)]
10-
pub flags EpollFlags: u32 {
11-
const EPOLLIN = libc::EPOLLIN as u32,
12-
const EPOLLPRI = libc::EPOLLPRI as u32,
13-
const EPOLLOUT = libc::EPOLLOUT as u32,
14-
const EPOLLRDNORM = libc::EPOLLRDNORM as u32,
15-
const EPOLLRDBAND = libc::EPOLLRDBAND as u32,
16-
const EPOLLWRNORM = libc::EPOLLWRNORM as u32,
17-
const EPOLLWRBAND = libc::EPOLLWRBAND as u32,
18-
const EPOLLMSG = libc::EPOLLMSG as u32,
19-
const EPOLLERR = libc::EPOLLERR as u32,
20-
const EPOLLHUP = libc::EPOLLHUP as u32,
21-
const EPOLLRDHUP = libc::EPOLLRDHUP as u32,
10+
pub flags EpollFlags: libc::c_int {
11+
const EPOLLIN = libc::EPOLLIN,
12+
const EPOLLPRI = libc::EPOLLPRI,
13+
const EPOLLOUT = libc::EPOLLOUT,
14+
const EPOLLRDNORM = libc::EPOLLRDNORM,
15+
const EPOLLRDBAND = libc::EPOLLRDBAND,
16+
const EPOLLWRNORM = libc::EPOLLWRNORM,
17+
const EPOLLWRBAND = libc::EPOLLWRBAND,
18+
const EPOLLMSG = libc::EPOLLMSG,
19+
const EPOLLERR = libc::EPOLLERR,
20+
const EPOLLHUP = libc::EPOLLHUP,
21+
const EPOLLRDHUP = libc::EPOLLRDHUP,
2222
const EPOLLEXCLUSIVE = 1 << 28,
23-
const EPOLLWAKEUP = libc::EPOLLWAKEUP as u32,
24-
const EPOLLONESHOT = libc::EPOLLONESHOT as u32,
25-
const EPOLLET = libc::EPOLLET as u32,
23+
const EPOLLWAKEUP = libc::EPOLLWAKEUP,
24+
const EPOLLONESHOT = libc::EPOLLONESHOT,
25+
const EPOLLET = libc::EPOLLET,
2626
}
2727
);
2828

0 commit comments

Comments
 (0)