diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2017-07-04 01:09:43 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2017-07-04 01:09:43 +0000 |
commit | a3243272b92264f36031507f8553cb352b4094c7 (patch) | |
tree | e20a3b8a17f0f7d38a0c6a660c16ac663f709cbb /usr.sbin/identd/identd.c | |
parent | e5e0aeb73585c6a7c25ade144e935be137229854 (diff) |
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/identd.c')
-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 |