Merge pull request #5102 from donaldsharp/fix_some_warnings

Fix some warnings
This commit is contained in:
Jafar Al-Gharaibeh 2019-10-03 10:38:29 -07:00 committed by GitHub
commit bf9846bdbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -1234,7 +1234,8 @@ DEFPY (show_rpki_prefix,
const struct pfx_record *record = &matches[i];
if (record->max_len >= prefix->prefixlen
&& ((asn != 0 && asn == record->asn) || asn == 0)) {
&& ((asn != 0 && (uint32_t)asn == record->asn)
|| asn == 0)) {
print_record(&matches[i], vty);
}
}

View File

@ -209,7 +209,7 @@ static int bgp_ifp_destroy(struct interface *ifp)
bgp = bgp_lookup_by_vrf_id(ifp->vrf_id);
if (BGP_DEBUG(zebra, ZEBRA))
zlog_debug("Rx Intf del VRF %u IF %s", bgp->vrf_id, ifp->name);
zlog_debug("Rx Intf del VRF %u IF %s", ifp->vrf_id, ifp->name);
if (bgp)
bgp_update_interface_nbrs(bgp, ifp, NULL);