summaryrefslogtreecommitdiffstats
path: root/zebra
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2017-09-01 01:58:16 +0200
committerRenato Westphal <renato@opensourcerouting.org>2017-09-01 01:58:16 +0200
commit1dca2eaa5b5d9d64714a14d2e045ac014e2d3bf5 (patch)
treec36466eae653a176cb71672ee4cff9f13a4ef671 /zebra
parentMerge pull request #1083 from donaldsharp/unreachable (diff)
downloadfrr-1dca2eaa5b5d9d64714a14d2e045ac014e2d3bf5.tar.xz
frr-1dca2eaa5b5d9d64714a14d2e045ac014e2d3bf5.zip
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 <renato@opensourcerouting.org>
Diffstat (limited to 'zebra')
-rw-r--r--zebra/rt_netlink.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c
index 6c45df8ca..c58a7aa2f 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;