Minor fixes

This commit is contained in:
Pavel Tvrdík 2015-01-07 15:04:02 +01:00 committed by Ondrej Zajicek
parent 85a3639d99
commit 6264aad16f
2 changed files with 2 additions and 2 deletions

View file

@ -246,7 +246,7 @@ ip4_pton(char *a, ip4_addr *o)
if (!c != !i) if (!c != !i)
return 0; return 0;
l = strtoul(a, &d, 10); l = strtoul(a, &d, 10);
if (d != c && *d || l > 255) if (((d != c) && *d) || (l > 255))
return 0; return 0;
ia = (ia << 8) | l; ia = (ia << 8) | l;
if (c) if (c)

View file

@ -554,7 +554,7 @@ next:
c = 1; c = 1;
debug("got %p\n", z); debug("got %p\n", z);
} }
FIB_ITERATE_END; FIB_ITERATE_END(z);
dump("iter end"); dump("iter end");
fit_init(&i, &f); fit_init(&i, &f);