summaryrefslogtreecommitdiffstats
path: root/nest/proto.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-04-28 00:28:49 +0200
committerMartin Mares <mj@ucw.cz>2000-04-28 00:28:49 +0200
commit8f6accb5bb26d534576e086894c107387f67906a (patch)
treeb7c02cbdaca870a6f86e0110d2b1d270f5c89d77 /nest/proto.c
parent987de54578ce4053d737c64ea924a32f46a441a7 (diff)
downloadbird-8f6accb5bb26d534576e086894c107387f67906a.tar
bird-8f6accb5bb26d534576e086894c107387f67906a.zip
Event handlers no longer return re-queue flag. Instead of using it, just
call ev_schedule() on the same handler which should work perfectly now.
Diffstat (limited to 'nest/proto.c')
-rw-r--r--nest/proto.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/nest/proto.c b/nest/proto.c
index f6eb32c..1af76ea 100644
--- a/nest/proto.c
+++ b/nest/proto.c
@@ -43,7 +43,7 @@ static event *proto_flush_event;
static char *p_states[] = { "DOWN", "START", "UP", "STOP" };
static char *c_states[] = { "HUNGRY", "FEEDING", "HAPPY", "FLUSHING" };
-static int proto_flush_all(void *);
+static void proto_flush_all(void *);
static void proto_rethink_goal(struct proto *p);
static char *proto_state_name(struct proto *p);
@@ -399,7 +399,7 @@ proto_fell_down(struct proto *p)
proto_rethink_goal(p);
}
-static int
+static void
proto_feed(void *P)
{
struct proto *p = P;
@@ -411,7 +411,6 @@ proto_feed(void *P)
p->core_state = FS_HAPPY;
proto_relink(p);
DBG("Protocol %s up and running\n", p->name);
- return 0;
}
void
@@ -469,7 +468,7 @@ proto_notify_state(struct proto *p, unsigned ps)
proto_relink(p);
}
-static int
+static void
proto_flush_all(void *unused)
{
struct proto *p;
@@ -485,7 +484,6 @@ proto_flush_all(void *unused)
proto_relink(p);
proto_fell_down(p);
}
- return 0;
}
/*