diff options
author | dlg <dlg@openbsd.org> | 2017-07-04 01:09:42 +0000 |
---|---|---|
committer | dlg <dlg@openbsd.org> | 2017-07-04 01:09:42 +0000 |
commit | 270badb5cddd9778eeba6d015e6cf8fcd9ffbb54 (patch) | |
tree | b3011c5daf8726c5802bf55d2efeedea3c595aef /usr.sbin/identd | |
parent | include stdarg.h explicitly instead of relying on event.h to bring it in. (diff) | |
download | wireguard-openbsd-270badb5cddd9778eeba6d015e6cf8fcd9ffbb54.tar.xz wireguard-openbsd-270badb5cddd9778eeba6d015e6cf8fcd9ffbb54.zip |
consistently use the evtimer wrappers around the connection timeout.
this is instead of setting the timeout up with event_set and
event_add, but removing it with evtimer_del. this uses evtimer_set
and evtimer_add.
Diffstat (limited to 'usr.sbin/identd')
-rw-r--r-- | usr.sbin/identd/identd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/identd/identd.c b/usr.sbin/identd/identd.c index 0529e1737af..431c2481318 100644 --- a/usr.sbin/identd/identd.c +++ b/usr.sbin/identd/identd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: identd.c,v 1.37 2017/07/04 01:07:32 dlg Exp $ */ +/* $OpenBSD: identd.c,v 1.38 2017/07/04 01:09:42 dlg Exp $ */ /* * Copyright (c) 2013 David Gwynne <dlg@openbsd.org> @@ -753,8 +753,8 @@ identd_accept(int fd, short events, void *arg) event_set(&c->ev, s, EV_READ | EV_PERSIST, identd_request, c); event_add(&c->ev, NULL); - event_set(&c->tmo, s, 0, identd_timeout, c); - event_add(&c->tmo, &timeout); + evtimer_set(&c->tmo, identd_timeout, c); + evtimer_add(&c->tmo, &timeout); } void |