summaryrefslogtreecommitdiff
path: root/ev_kqueue.c
diff options
context:
space:
mode:
authorroot <root>2007-11-23 05:29:16 +0000
committerroot <root>2007-11-23 05:29:16 +0000
commit3a4087231f0dd9f9e46ea99be8576b0b7c82ac40 (patch)
tree2c1871407c1d492385357b4569f60a499e77ba26 /ev_kqueue.c
parentf8b4f278bfcd0d7207ce21570247a58854fa2207 (diff)
assume EV_SET is portable
Diffstat (limited to 'ev_kqueue.c')
-rw-r--r--ev_kqueue.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/ev_kqueue.c b/ev_kqueue.c
index a69c0a7..4081136 100644
--- a/ev_kqueue.c
+++ b/ev_kqueue.c
@@ -42,12 +42,7 @@ kqueue_change (EV_P_ int fd, int filter, int flags, int fflags)
++kqueue_changecnt;
array_needsize (struct kevent, kqueue_changes, kqueue_changemax, kqueue_changecnt, EMPTY2);
- ke = &kqueue_changes [kqueue_changecnt - 1];
- memset (ke, 0, sizeof (struct kevent));
- ke->ident = fd;
- ke->filter = filter;
- ke->flags = flags;
- ke->fflags = fflags;
+ EV_SET (&kqueue_changes [kqueue_changecnt - 1], fd, filter, flags, fflags, 0, 0);
}
#ifndef NOTE_EOF