From: Renato Westphal Date: Thu, 31 Aug 2017 23:58:16 +0000 (-0300) Subject: zebra: fix compiler error introduced by previous commit X-Git-Tag: frr-4.0-dev~350^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F1089%2Fhead;p=mirror%2Ffrr.git zebra: fix compiler error introduced by previous commit Lesson learned: always wait for the CI tests to finish before merging :) Signed-off-by: Renato Westphal --- diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index 6c45df8ca2..c58a7aa2fa 100644 --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c @@ -389,13 +389,13 @@ static int netlink_route_change_read_unicast(struct sockaddr_nl *snl, if (index && !gate) nh.type = NEXTHOP_TYPE_IFINDEX; else if (index && gate) - nh.type = (afi == AFI_IP) ? + nh.type = (afi == AFI_IP) ? NEXTHOP_TYPE_IPV4_IFINDEX : NEXTHOP_TYPE_IPV6_IFINDEX; else if (!index && gate) - nh.type = (afi == AFI_IP) ? - ? NEXTHOP_TYPE_IPV4 - : NEXTHOP_TYPE_IPV6; + nh.type = (afi == AFI_IP) + ? NEXTHOP_TYPE_IPV4 + : NEXTHOP_TYPE_IPV6; else { nh.type = NEXTHOP_TYPE_BLACKHOLE; nh.bh_type = bh_type;