]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: fix compiler error introduced by previous commit 1089/head
authorRenato Westphal <renato@opensourcerouting.org>
Thu, 31 Aug 2017 23:58:16 +0000 (20:58 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Thu, 31 Aug 2017 23:58:16 +0000 (20:58 -0300)
Lesson learned: always wait for the CI tests to finish before merging :)

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
zebra/rt_netlink.c

index 6c45df8ca2ae6e35698a5aef393afe672f7f6e5b..c58a7aa2fad99e264323aec10bae7bed97720786 100644 (file)
@@ -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;