summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprovos <provos@openbsd.org>2002-06-19 05:26:53 +0000
committerprovos <provos@openbsd.org>2002-06-19 05:26:53 +0000
commita125e45c07b97daff847e26158933c488f537dce (patch)
tree8d2565cd92ad53ddefacc34fb35b451c22e04aed
parentPoach a commit; error(1) groks yacc output now... (diff)
downloadwireguard-openbsd-a125e45c07b97daff847e26158933c488f537dce.tar.xz
wireguard-openbsd-a125e45c07b97daff847e26158933c488f537dce.zip
rename variable so that scoping is more obvious
-rw-r--r--lib/libevent/kqueue.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libevent/kqueue.c b/lib/libevent/kqueue.c
index 0bae83781d9..607191005c7 100644
--- a/lib/libevent/kqueue.c
+++ b/lib/libevent/kqueue.c
@@ -237,7 +237,7 @@ kq_dispatch(void *arg, struct timeval *tv)
for (i = 0; i < res; i++) {
/* XXX */
- int ncalls, res;
+ int ncalls, evres;
if (events[i].flags & EV_ERROR || events[i].filter == NULL)
continue;
@@ -249,13 +249,13 @@ kq_dispatch(void *arg, struct timeval *tv)
ncalls = 0;
if (ev->ev_flags & EVLIST_ACTIVE) {
ncalls = ev->ev_ncalls;
- res = ev->ev_res;
+ evres = ev->ev_res;
}
ev->ev_flags &= ~EVLIST_X_KQINKERNEL;
event_del(ev);
if (ncalls)
- event_active(ev, res, ncalls);
+ event_active(ev, evres, ncalls);
}
return (0);