mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-30 00:56:38 +00:00
staticd, zebra: Fix up code warnings
CI found a couple of warnings that needed to be cleaned up. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
fe64533ad9
commit
51c4ed0a0e
@ -1047,7 +1047,7 @@ DEFPY(ip_route_vrf,
|
|||||||
VTY_DECLVAR_CONTEXT(vrf, vrf);
|
VTY_DECLVAR_CONTEXT(vrf, vrf);
|
||||||
struct static_vrf *svrf = vrf->info;
|
struct static_vrf *svrf = vrf->info;
|
||||||
struct static_vrf *nh_svrf;
|
struct static_vrf *nh_svrf;
|
||||||
const char *flag = NULL;
|
const char *flag = NULL;
|
||||||
|
|
||||||
if (table_str && !vrf_is_backend_netns()) {
|
if (table_str && !vrf_is_backend_netns()) {
|
||||||
vty_out(vty,
|
vty_out(vty,
|
||||||
|
@ -644,12 +644,14 @@ static int netlink_route_change_read_unicast(struct nlmsghdr *h, ns_id_t ns_id,
|
|||||||
if (gate)
|
if (gate)
|
||||||
memcpy(&nh.gate, gate, sz);
|
memcpy(&nh.gate, gate, sz);
|
||||||
rib_delete(afi, SAFI_UNICAST, vrf_id, proto, 0, flags,
|
rib_delete(afi, SAFI_UNICAST, vrf_id, proto, 0, flags,
|
||||||
&p, &src_p, &nh, table, metric, distance, true);
|
&p, &src_p, &nh, table, metric, distance,
|
||||||
|
true);
|
||||||
} else {
|
} else {
|
||||||
/* XXX: need to compare the entire list of nexthops
|
/* XXX: need to compare the entire list of nexthops
|
||||||
* here for NLM_F_APPEND stupidity */
|
* here for NLM_F_APPEND stupidity */
|
||||||
rib_delete(afi, SAFI_UNICAST, vrf_id, proto, 0, flags,
|
rib_delete(afi, SAFI_UNICAST, vrf_id, proto, 0, flags,
|
||||||
&p, &src_p, NULL, table, metric, distance, true);
|
&p, &src_p, NULL, table, metric, distance,
|
||||||
|
true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user