From 270badb5cddd9778eeba6d015e6cf8fcd9ffbb54 Mon Sep 17 00:00:00 2001 From: dlg Date: Tue, 4 Jul 2017 01:09:42 +0000 Subject: [PATCH] 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. --- usr.sbin/identd/identd.c | 6 +++--- 1 file 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 @@ -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 -- 2.20.1