diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-10-03 08:55:29 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-10-03 08:55:29 -0400 |
| commit | c17140fd7aff77c1763333dfdbc2bb0cf162786c (patch) | |
| tree | ccba64a3ddded15fac5a483611e77d48f51d0c1b | |
| parent | 6d7b7e42570d81eb22fb05918ea4066321df005b (diff) | |
bgpd: Show to compiler that uint64_t -> uint32_t is ok here
We only have a uint32_t value here but clippy is wise and
gives us more data than we need. Tell the compiler we can
throw some stuff away.
This was found by inspecting CI results.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
| -rw-r--r-- | bgpd/bgp_rpki.c | 3 |
1 files changed, 2 insertions, 1 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); } } |
