summaryrefslogtreecommitdiff
path: root/src/sys/event.rs
diff options
context:
space:
mode:
authorBryant Mairs <bryantmairs@google.com>2017-11-21 22:27:15 -0800
committerBryant Mairs <bryantmairs@google.com>2017-12-02 10:46:34 -0800
commite1baab9dc132f18e13f446df0271a5e46723848d (patch)
tree3e4e6714d843edc493dfc3cf879d659bbd264e65 /src/sys/event.rs
parentd374a1ecd3f69027a2ce28e87806f459ef3f9105 (diff)
downloadnix-e1baab9dc132f18e13f446df0271a5e46723848d.zip
Upgrade to Bitflags 1.0
The libc_bitflags! macro was replaced with a non-recursive one supporting only public structs. I could not figure out how to make the old macro work with the upgrade, so I reworked part of the bitflags! macro directly to suit our needs, much as the original recursive macro was made. There are no uses of this macro for non-public structs, so this is not a problem for internal code.
Diffstat (limited to 'src/sys/event.rs')
-rw-r--r--src/sys/event.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sys/event.rs b/src/sys/event.rs
index 189f8239..e63fe502 100644
--- a/src/sys/event.rs
+++ b/src/sys/event.rs
@@ -320,8 +320,8 @@ fn test_struct_kevent() {
udata: udata as type_of_udata};
let actual = KEvent::new(0xdeadbeef,
EventFilter::EVFILT_READ,
- EV_ONESHOT | EV_ADD,
- NOTE_CHILD | NOTE_EXIT,
+ EventFlag::EV_ONESHOT | EventFlag::EV_ADD,
+ FilterFlag::NOTE_CHILD | FilterFlag::NOTE_EXIT,
0x1337,
udata);
assert!(expected.ident == actual.ident());