diff --git a/bgpd/bgp_rpki.c b/bgpd/bgp_rpki.c index 22f78fb80a..56b0263bf6 100644 --- a/bgpd/bgp_rpki.c +++ b/bgpd/bgp_rpki.c @@ -1082,7 +1082,7 @@ static void print_prefix_table(struct vty *vty, struct rpki_vrf *rpki_vrf, unsigned int number_of_ipv4_prefixes = 0; unsigned int number_of_ipv6_prefixes = 0; - struct rtr_mgr_group *group = get_connected_group(rpki_vrf); + struct rtr_mgr_group *group; json_object *json_records = NULL; if (!rpki_vrf) diff --git a/ospfd/ospf_te.c b/ospfd/ospf_te.c index 9ba9a7659d..a55a37a907 100644 --- a/ospfd/ospf_te.c +++ b/ospfd/ospf_te.c @@ -3959,7 +3959,6 @@ static void ospf_mpls_te_show_info(struct vty *vty, struct json_object *json, json_object *jobj = NULL; sum = 0; - sub = 0; total = lsa->size - OSPF_LSA_HEADER_SIZE; for (tlvh = TLV_HDR_TOP(lsah); sum < total && tlvh;