]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixes silly bug.
authorOndrej Zajicek <santiago@crfreenet.org>
Wed, 2 Dec 2009 21:22:40 +0000 (22:22 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Wed, 2 Dec 2009 21:22:40 +0000 (22:22 +0100)
nest/proto.c

index bdac4bf65223c34c233558e0fc6e8048411abbe7..b23011d75ff3260fbc261b40f854983f3c67f3e9 100644 (file)
@@ -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: