]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Minor fixes
authorPavel Tvrdík <pawel.tvrdik@gmail.cz>
Wed, 7 Jan 2015 14:04:02 +0000 (15:04 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Sat, 21 Feb 2015 19:11:02 +0000 (20:11 +0100)
lib/ip.c
nest/rt-fib.c

index 01edf0d5a5e600e4978c41c77462b85c12bd8530..e1bfba49deb82a04ddc41579a9910e24be8f1ba6 100644 (file)
--- a/lib/ip.c
+++ b/lib/ip.c
@@ -246,7 +246,7 @@ ip4_pton(char *a, ip4_addr *o)
     if (!c != !i)
       return 0;
     l = strtoul(a, &d, 10);
-    if (d != c && *d || l > 255)
+    if (((d != c) && *d) || (l > 255))
       return 0;
     ia = (ia << 8) | l;
     if (c)
index 510aa76be96f7c8f6d5c78ebafe1a8011f5463a8..b9c7d2a2451f0038c126b4c95750e5d6f5795f4b 100644 (file)
@@ -554,7 +554,7 @@ next:
       c = 1;
       debug("got %p\n", z);
     }
-  FIB_ITERATE_END;
+  FIB_ITERATE_END(z);
   dump("iter end");
 
   fit_init(&i, &f);