diff options
author | 2002-06-19 05:26:53 +0000 | |
---|---|---|
committer | 2002-06-19 05:26:53 +0000 | |
commit | a125e45c07b97daff847e26158933c488f537dce (patch) | |
tree | 8d2565cd92ad53ddefacc34fb35b451c22e04aed /lib | |
parent | Poach a commit; error(1) groks yacc output now... (diff) | |
download | wireguard-openbsd-a125e45c07b97daff847e26158933c488f537dce.tar.xz wireguard-openbsd-a125e45c07b97daff847e26158933c488f537dce.zip |
rename variable so that scoping is more obvious
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libevent/kqueue.c | 6 |
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); |