diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2009-06-02 12:24:17 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2009-06-02 12:24:17 +0000 |
commit | 6a318e862a4a9ae95093da244047c8f5b6ec78af (patch) | |
tree | b5c16e751051c5228f2c7ddb4ccdaf68c7a23aab /usr.sbin/relayd/hce.c | |
parent | ed860fe1c7cf8fc0126e575e7a620e567cbe5cdb (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/hce.c')
-rw-r--r-- | usr.sbin/relayd/hce.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.sbin/relayd/hce.c b/usr.sbin/relayd/hce.c index 748073189dd..f85b7eca36c 100644 --- a/usr.sbin/relayd/hce.c +++ b/usr.sbin/relayd/hce.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hce.c,v 1.48 2009/06/02 11:33:06 reyk Exp $ */ +/* $OpenBSD: hce.c,v 1.49 2009/06/02 12:24:16 reyk Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org> @@ -382,8 +382,6 @@ hce_dispatch_imsg(int fd, short event, void *ptr) if (event & EV_WRITE) { if (msgbuf_write(&ibuf->w) == -1) fatal("hce_dispatch_imsg: msgbuf_write"); - imsg_event_add(ibuf); - return; } for (;;) { @@ -470,8 +468,6 @@ hce_dispatch_parent(int fd, short event, void * ptr) if (event & EV_WRITE) { if (msgbuf_write(&ibuf->w) == -1) fatal("hce_dispatch_parent: msgbuf_write"); - imsg_event_add(ibuf); - return; } for (;;) { |