summaryrefslogtreecommitdiff
path: root/usr.sbin/ripd
diff options
context:
space:
mode:
authorJacek Masiulaniec <jacekm@cvs.openbsd.org>2009-05-31 20:30:16 +0000
committerJacek Masiulaniec <jacekm@cvs.openbsd.org>2009-05-31 20:30:16 +0000
commit21bbe0c9dab80460c4b17c0ec48ba91dea34a953 (patch)
treef030568df05eae168cb2e60f43b961030ffe70e4 /usr.sbin/ripd
parent64977f7811cee6e49d680cf47e3a4ab0291e5a8d (diff)
Remove redundant imsg_event_add calls; ok claudio@
Diffstat (limited to 'usr.sbin/ripd')
-rw-r--r--usr.sbin/ripd/control.c3
-rw-r--r--usr.sbin/ripd/rde.c4
-rw-r--r--usr.sbin/ripd/ripd.c4
-rw-r--r--usr.sbin/ripd/ripe.c4
4 files changed, 4 insertions, 11 deletions
diff --git a/usr.sbin/ripd/control.c b/usr.sbin/ripd/control.c
index cc0878dd560..cd1ddd0e415 100644
--- a/usr.sbin/ripd/control.c
+++ b/usr.sbin/ripd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.8 2009/05/31 17:06:01 claudio Exp $ */
+/* $OpenBSD: control.c,v 1.9 2009/05/31 20:30:15 jacekm Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -208,7 +208,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/ripd/rde.c b/usr.sbin/ripd/rde.c
index 6322dac1a4b..f00e135e3f4 100644
--- a/usr.sbin/ripd/rde.c
+++ b/usr.sbin/ripd/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.10 2009/05/31 17:06:01 claudio Exp $ */
+/* $OpenBSD: rde.c,v 1.11 2009/05/31 20:30:15 jacekm Exp $ */
/*
* Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it>
@@ -196,7 +196,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);
}
for (;;) {
@@ -291,7 +290,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 (;;) {
diff --git a/usr.sbin/ripd/ripd.c b/usr.sbin/ripd/ripd.c
index 5dffa43989d..57167cce94d 100644
--- a/usr.sbin/ripd/ripd.c
+++ b/usr.sbin/ripd/ripd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ripd.c,v 1.14 2009/05/31 17:06:01 claudio Exp $ */
+/* $OpenBSD: ripd.c,v 1.15 2009/05/31 20:30:15 jacekm Exp $ */
/*
* Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it>
@@ -349,7 +349,6 @@ main_dispatch_ripe(int fd, short event, void *bula)
if (event & EV_WRITE) {
if (msgbuf_write(&ibuf->w) == -1)
fatal("msgbuf_write");
- imsg_event_add(ibuf);
}
for (;;) {
@@ -421,7 +420,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/ripd/ripe.c b/usr.sbin/ripd/ripe.c
index 6b1d23f27ee..1094c50cc97 100644
--- a/usr.sbin/ripd/ripe.c
+++ b/usr.sbin/ripd/ripe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ripe.c,v 1.10 2009/05/31 17:06:01 claudio Exp $ */
+/* $OpenBSD: ripe.c,v 1.11 2009/05/31 20:30:15 jacekm Exp $ */
/*
* Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it>
@@ -238,7 +238,6 @@ ripe_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 (;;) {
@@ -318,7 +317,6 @@ ripe_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 (;;) {