diff options
author | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2007-05-31 18:24:03 +0000 |
---|---|---|
committer | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2007-05-31 18:24:03 +0000 |
commit | ab6ec948906680cbd8f108f04bf439e8d7d88db4 (patch) | |
tree | 5dab66ff58716c29ddfbb37c21259831dfd6dd97 /usr.sbin/relayd/pfe.c | |
parent | 14c12ff7be8f282899cf90685d09cc912f019e5f (diff) |
simplify pfe_disable_events
Diffstat (limited to 'usr.sbin/relayd/pfe.c')
-rw-r--r-- | usr.sbin/relayd/pfe.c | 11 |
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 |