diff options
| author | Jafar Al-Gharaibeh <Jafaral@users.noreply.github.com> | 2019-10-03 10:38:29 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-03 10:38:29 -0700 |
| commit | bf9846bdbecbe5d230dab84f9a4aaa2e90654499 (patch) | |
| tree | 0cbd1d1ba8e4290b9fd82cf0513c0a0575cd94e1 | |
| parent | 5364f11bec8bd5358b0c460c02f61342a090369f (diff) | |
| parent | 3835984f1c66283031af6c3433ff6e289b6059a6 (diff) | |
Merge pull request #5102 from donaldsharp/fix_some_warnings
Fix some warnings
| -rw-r--r-- | bgpd/bgp_rpki.c | 3 | ||||
| -rw-r--r-- | bgpd/bgp_zebra.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/bgpd/bgp_rpki.c b/bgpd/bgp_rpki.c index 352e3b87e8..1267e35097 100644 --- a/bgpd/bgp_rpki.c +++ b/bgpd/bgp_rpki.c @@ -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); } } diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c index de39e295ff..8970e9d1d1 100644 --- a/bgpd/bgp_zebra.c +++ b/bgpd/bgp_zebra.c @@ -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); |
