summaryrefslogtreecommitdiffstats
path: root/nest
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2009-12-02 22:22:40 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2009-12-02 22:22:40 +0100
commita421ec33cb9029899122d0ab63bab0fa268348d2 (patch)
tree287174bffb8ea700efc510d09a58bbed21d55a7a /nest
parent11361a101517c2c87e3d35d2c63cacb3ddb97724 (diff)
downloadbird-a421ec33cb9029899122d0ab63bab0fa268348d2.tar
bird-a421ec33cb9029899122d0ab63bab0fa268348d2.zip
Fixes silly bug.
Diffstat (limited to 'nest')
-rw-r--r--nest/proto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nest/proto.c b/nest/proto.c
index bdac4bf..b23011d 100644
--- a/nest/proto.c
+++ b/nest/proto.c
@@ -649,7 +649,7 @@ proto_notify_state(struct proto *p, unsigned ps)
switch (ps)
{
case PS_DOWN:
- if ((cs = FS_FEEDING) || (cs == FS_HAPPY))
+ if ((cs == FS_FEEDING) || (cs == FS_HAPPY))
proto_schedule_flush(p);
neigh_prune(); // FIXME convert neighbors to resource?
@@ -672,7 +672,7 @@ proto_notify_state(struct proto *p, unsigned ps)
proto_schedule_feed(p, 1);
break;
case PS_STOP:
- if ((cs = FS_FEEDING) || (cs == FS_HAPPY))
+ if ((cs == FS_FEEDING) || (cs == FS_HAPPY))
proto_schedule_flush(p);
break;
default: