summaryrefslogtreecommitdiff
path: root/usr.sbin/ospf6d
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2012-04-11 08:34:42 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2012-04-11 08:34:42 +0000
commit92187c9906193f3542167f06c15457ada274eb7c (patch)
treeefe83cee7a22c31a321a7c4b6c4deec8f6d7d046 /usr.sbin/ospf6d
parent9ba7887131b0a6530e49cafc7bb341fd45aa6edc (diff)
delete excessive evtimer_pending; ok claudio
Diffstat (limited to 'usr.sbin/ospf6d')
-rw-r--r--usr.sbin/ospf6d/control.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/ospf6d/control.c b/usr.sbin/ospf6d/control.c
index a6e2107f3d6..4bf2c4be8e2 100644
--- a/usr.sbin/ospf6d/control.c
+++ b/usr.sbin/ospf6d/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.17 2012/04/10 07:56:50 deraadt Exp $ */
+/* $OpenBSD: control.c,v 1.18 2012/04/11 08:33:53 deraadt Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -103,8 +103,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(OSPF6D_SOCKET);
}