diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-08-31 20:02:05 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-31 20:02:05 -0400 |
| commit | be65e7dcde092618d59d5babb643e8e7a4c0239b (patch) | |
| tree | c36466eae653a176cb71672ee4cff9f13a4ef671 | |
| parent | 99df910d50b340958bdd3dc952cc63199675fac3 (diff) | |
| parent | 1dca2eaa5b5d9d64714a14d2e045ac014e2d3bf5 (diff) | |
Merge pull request #1089 from opensourcerouting/zebra-fix-build
zebra: fix compiler error introduced by previous commit
| -rw-r--r-- | zebra/rt_netlink.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |
