From 8f6accb5bb26d534576e086894c107387f67906a Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 27 Apr 2000 22:28:49 +0000 Subject: 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. --- nest/proto.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'nest/proto.c') 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; } /* -- cgit v1.2.3