diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-04-08 13:38:58 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-04-13 12:05:22 -0700 |
commit | 8bc28150056bca910ffd94f28305456a6e07ad47 (patch) | |
tree | 4d789ea4c31d4e13585af0465de94d6a26f7a2a3 /zebra/zebra_rib.c | |
parent | f806c078696a420b1305bfb983183919f0319980 (diff) | |
download | quagga-8bc28150056bca910ffd94f28305456a6e07ad47.tar.bz2 quagga-8bc28150056bca910ffd94f28305456a6e07ad47.tar.xz |
Fix compiler warnings
Resolve gcc warnings about signed/unsigned and missing parens
Diffstat (limited to 'zebra/zebra_rib.c')
-rw-r--r-- | zebra/zebra_rib.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index 521bf8b3..fdf125f0 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -625,8 +625,8 @@ nexthop_active_ipv6 (struct rib *rib, struct nexthop *nexthop, int set, || newhop->type == NEXTHOP_TYPE_IPV6_IFINDEX || newhop->type == NEXTHOP_TYPE_IPV6_IFNAME) && nexthop->rifindex != newhop->ifindex) - || (nexthop->type == NEXTHOP_TYPE_IPV6) && - nexthop->ifindex != newhop->ifindex) + || ((nexthop->type == NEXTHOP_TYPE_IPV6) && + (nexthop->ifindex != newhop->ifindex))) { SET_FLAG (rib->flags, ZEBRA_FLAG_CHANGED); } @@ -1214,9 +1214,9 @@ rib_process (struct route_node *rn) if (select && select == fib) { if (IS_ZEBRA_DEBUG_RIB) - zlog_debug ("%s: %s/%d: Updating existing route, fib %p flags %#lx status %#lx", + zlog_debug ("%s: %s/%d: Updating existing route, fib %p flags %#x status %#x", __func__, buf, rn->p.prefixlen, fib, - select->flags, select->status); + (unsigned) select->flags, (unsigned) select->status); if (CHECK_FLAG (select->flags, ZEBRA_FLAG_CHANGED)) { redistribute_delete (&rn->p, select); |