diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2012-04-11 08:34:42 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2012-04-11 08:34:42 +0000 |
commit | 92187c9906193f3542167f06c15457ada274eb7c (patch) | |
tree | efe83cee7a22c31a321a7c4b6c4deec8f6d7d046 /usr.sbin/ripd | |
parent | 9ba7887131b0a6530e49cafc7bb341fd45aa6edc (diff) |
delete excessive evtimer_pending; ok claudio
Diffstat (limited to 'usr.sbin/ripd')
-rw-r--r-- | usr.sbin/ripd/control.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/ripd/control.c b/usr.sbin/ripd/control.c index f3ea65d4ff1..2cc7bf596b3 100644 --- a/usr.sbin/ripd/control.c +++ b/usr.sbin/ripd/control.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control.c,v 1.16 2012/04/10 07:56:54 deraadt Exp $ */ +/* $OpenBSD: control.c,v 1.17 2012/04/11 08:33:53 deraadt Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -104,8 +104,7 @@ void control_cleanup(void) { event_del(&control_state.ev); - if (evtimer_pending(&control_state.evt, NULL)) - event_del(&control_state.evt); + event_del(&control_state.evt); unlink(RIPD_SOCKET); } |