summaryrefslogtreecommitdiff
path: root/usr.sbin/relayd/pfe.c
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2009-06-02 12:24:17 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2009-06-02 12:24:17 +0000
commit6a318e862a4a9ae95093da244047c8f5b6ec78af (patch)
treeb5c16e751051c5228f2c7ddb4ccdaf68c7a23aab /usr.sbin/relayd/pfe.c
parented860fe1c7cf8fc0126e575e7a620e567cbe5cdb (diff)
remove extra imsg_event_add() after EV_WRITE checks - this is not
required because it is called later and there is no return before. ok gilles@
Diffstat (limited to 'usr.sbin/relayd/pfe.c')
-rw-r--r--usr.sbin/relayd/pfe.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/usr.sbin/relayd/pfe.c b/usr.sbin/relayd/pfe.c
index c46471e265e..ba926dbb9f4 100644
--- a/usr.sbin/relayd/pfe.c
+++ b/usr.sbin/relayd/pfe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfe.c,v 1.56 2009/06/02 11:33:06 reyk Exp $ */
+/* $OpenBSD: pfe.c,v 1.57 2009/06/02 12:24:16 reyk Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -244,8 +244,6 @@ pfe_dispatch_imsg(int fd, short event, void *ptr)
if (event & EV_WRITE) {
if (msgbuf_write(&ibuf->w) == -1)
fatal("pfe_dispatch_imsg: msgbuf_write");
- imsg_event_add(ibuf);
- return;
}
for (;;) {
@@ -353,8 +351,6 @@ pfe_dispatch_parent(int fd, short event, void * ptr)
if (event & EV_WRITE) {
if (msgbuf_write(&ibuf->w) == -1)
fatal("msgbuf_write");
- imsg_event_add(ibuf);
- return;
}
for (;;) {
@@ -475,8 +471,6 @@ pfe_dispatch_relay(int fd, short event, void * ptr)
if (event & EV_WRITE) {
if (msgbuf_write(&ibuf->w) == -1)
fatal("msgbuf_write");
- imsg_event_add(ibuf);
- return;
}
for (;;) {