diff options
author | 2007-03-19 15:12:49 +0000 | |
---|---|---|
committer | 2007-03-19 15:12:49 +0000 | |
commit | 7567a3869306a673a370f822187e9f0d2c2bc2fa (patch) | |
tree | 7fdf7c957c73da95d17f3cabfea79206f6f7aac1 /lib/libevent/kqueue.c | |
parent | Fix keyword expansion. (diff) | |
download | wireguard-openbsd-7567a3869306a673a370f822187e9f0d2c2bc2fa.tar.xz wireguard-openbsd-7567a3869306a673a370f822187e9f0d2c2bc2fa.zip |
Update to libevent-1.3b while retaining our local changes. beck@ OK
Diffstat (limited to 'lib/libevent/kqueue.c')
-rw-r--r-- | lib/libevent/kqueue.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/libevent/kqueue.c b/lib/libevent/kqueue.c index d05144de0d4..c85334c29aa 100644 --- a/lib/libevent/kqueue.c +++ b/lib/libevent/kqueue.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kqueue.c,v 1.21 2006/11/05 17:07:07 brad Exp $ */ +/* $OpenBSD: kqueue.c,v 1.22 2007/03/19 15:12:49 millert Exp $ */ /* * Copyright 2000-2002 Niels Provos <provos@citi.umich.edu> @@ -101,7 +101,7 @@ kq_init(void) return (NULL); /* Initalize the kernel queue */ - + if ((kq = kqueue()) == -1) { event_warn("kqueue"); free (kqueueop); @@ -295,7 +295,7 @@ kq_add(void *arg, struct event *ev) if (!(ev->ev_events & EV_PERSIST)) kev.flags |= EV_ONESHOT; kev.udata = INTPTR(ev); - + if (kq_insert(kqop, &kev) == -1) return (-1); @@ -318,7 +318,7 @@ kq_add(void *arg, struct event *ev) if (!(ev->ev_events & EV_PERSIST)) kev.flags |= EV_ONESHOT; kev.udata = INTPTR(ev); - + if (kq_insert(kqop, &kev) == -1) return (-1); @@ -333,7 +333,7 @@ kq_add(void *arg, struct event *ev) if (!(ev->ev_events & EV_PERSIST)) kev.flags |= EV_ONESHOT; kev.udata = INTPTR(ev); - + if (kq_insert(kqop, &kev) == -1) return (-1); @@ -359,7 +359,7 @@ kq_del(void *arg, struct event *ev) kev.ident = nsignal; kev.filter = EVFILT_SIGNAL; kev.flags = EV_DELETE; - + if (kq_insert(kqop, &kev) == -1) return (-1); @@ -375,7 +375,7 @@ kq_del(void *arg, struct event *ev) kev.ident = ev->ev_fd; kev.filter = EVFILT_READ; kev.flags = EV_DELETE; - + if (kq_insert(kqop, &kev) == -1) return (-1); @@ -387,7 +387,7 @@ kq_del(void *arg, struct event *ev) kev.ident = ev->ev_fd; kev.filter = EVFILT_WRITE; kev.flags = EV_DELETE; - + if (kq_insert(kqop, &kev) == -1) return (-1); |