diff options
author | Jacek Masiulaniec <jacekm@cvs.openbsd.org> | 2009-05-31 18:46:02 +0000 |
---|---|---|
committer | Jacek Masiulaniec <jacekm@cvs.openbsd.org> | 2009-05-31 18:46:02 +0000 |
commit | c7e41b1813c56a3bb038a78465fc9f87f5247140 (patch) | |
tree | 72094817b010682d5d6417aeffb659eaa0114227 /usr.sbin | |
parent | 935a13ef06ed18bddc992f18a4bfcf141e4a7f77 (diff) |
Remove redundant imsg_event_add calls; ok claudio@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ospfd/control.c | 3 | ||||
-rw-r--r-- | usr.sbin/ospfd/ospfd.c | 4 | ||||
-rw-r--r-- | usr.sbin/ospfd/ospfe.c | 4 | ||||
-rw-r--r-- | usr.sbin/ospfd/rde.c | 4 |
4 files changed, 4 insertions, 11 deletions
diff --git a/usr.sbin/ospfd/control.c b/usr.sbin/ospfd/control.c index 49b37ae1a3f..d82712b45f8 100644 --- a/usr.sbin/ospfd/control.c +++ b/usr.sbin/ospfd/control.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control.c,v 1.24 2009/05/31 16:58:54 claudio Exp $ */ +/* $OpenBSD: control.c,v 1.25 2009/05/31 18:46:01 jacekm Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -209,7 +209,6 @@ control_dispatch_imsg(int fd, short event, void *bula) control_close(fd); return; } - imsg_event_add(&c->ibuf); } for (;;) { diff --git a/usr.sbin/ospfd/ospfd.c b/usr.sbin/ospfd/ospfd.c index 7c9cc6a1b1d..656cd82c9f1 100644 --- a/usr.sbin/ospfd/ospfd.c +++ b/usr.sbin/ospfd/ospfd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ospfd.c,v 1.66 2009/05/31 16:58:54 claudio Exp $ */ +/* $OpenBSD: ospfd.c,v 1.67 2009/05/31 18:46:01 jacekm Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -374,7 +374,6 @@ main_dispatch_ospfe(int fd, short event, void *bula) if (event & EV_WRITE) { if (msgbuf_write(&ibuf->w) == -1) fatal("msgbuf_write"); - imsg_event_add(ibuf); } for (;;) { @@ -449,7 +448,6 @@ main_dispatch_rde(int fd, short event, void *bula) if (event & EV_WRITE) { if (msgbuf_write(&ibuf->w) == -1) fatal("msgbuf_write"); - imsg_event_add(ibuf); } for (;;) { diff --git a/usr.sbin/ospfd/ospfe.c b/usr.sbin/ospfd/ospfe.c index 95dc22d8d94..c2a756d2a17 100644 --- a/usr.sbin/ospfd/ospfe.c +++ b/usr.sbin/ospfd/ospfe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ospfe.c,v 1.66 2009/05/31 16:58:54 claudio Exp $ */ +/* $OpenBSD: ospfe.c,v 1.67 2009/05/31 18:46:01 jacekm Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -274,7 +274,6 @@ ospfe_dispatch_main(int fd, short event, void *bula) if (event & EV_WRITE) { if (msgbuf_write(&ibuf->w) == -1) fatal("msgbuf_write"); - imsg_event_add(ibuf); } for (;;) { @@ -416,7 +415,6 @@ ospfe_dispatch_rde(int fd, short event, void *bula) if (event & EV_WRITE) { if (msgbuf_write(&ibuf->w) == -1) fatal("msgbuf_write"); - imsg_event_add(ibuf); } for (;;) { diff --git a/usr.sbin/ospfd/rde.c b/usr.sbin/ospfd/rde.c index 020bb99040f..7a530910255 100644 --- a/usr.sbin/ospfd/rde.c +++ b/usr.sbin/ospfd/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.78 2009/05/31 16:58:54 claudio Exp $ */ +/* $OpenBSD: rde.c,v 1.79 2009/05/31 18:46:01 jacekm Exp $ */ /* * Copyright (c) 2004, 2005 Claudio Jeker <claudio@openbsd.org> @@ -248,7 +248,6 @@ rde_dispatch_imsg(int fd, short event, void *bula) if (event & EV_WRITE) { if (msgbuf_write(&ibuf->w) == -1) fatal("msgbuf_write"); - imsg_event_add(ibuf); } clock_gettime(CLOCK_MONOTONIC, &tp); @@ -597,7 +596,6 @@ rde_dispatch_parent(int fd, short event, void *bula) if (event & EV_WRITE) { if (msgbuf_write(&ibuf->w) == -1) fatal("msgbuf_write"); - imsg_event_add(ibuf); } for (;;) { |