summaryrefslogtreecommitdiff
path: root/usr.sbin/relayd/pfe.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/relayd/pfe.c')
-rw-r--r--usr.sbin/relayd/pfe.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/usr.sbin/relayd/pfe.c b/usr.sbin/relayd/pfe.c
index b237ad29179..67e34cb9707 100644
--- a/usr.sbin/relayd/pfe.c
+++ b/usr.sbin/relayd/pfe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfe.c,v 1.28 2007/05/31 15:49:26 pyr Exp $ */
+/* $OpenBSD: pfe.c,v 1.29 2007/05/31 18:24:02 pyr Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -197,15 +197,12 @@ pfe_setup_events(void)
void
pfe_disable_events(void)
{
- int i;
- struct imsgbuf *ibuf;
+ int i;
event_del(&ibuf_hce->ev);
- for (i = 0; i < env->prefork_relay; i++) {
- ibuf = &ibuf_relay[i];
- event_del(&ibuf->ev);
- }
+ for (i = 0; i < env->prefork_relay; i++)
+ event_del(&ibuf_relay[i].ev);
}
void