From: Donald Sharp Date: Sat, 17 Mar 2018 19:08:13 +0000 (-0400) Subject: bgpd: Fix warning on 32 bit systems X-Git-Tag: frr-5.0-dev~145^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F1920%2Fhead;p=mirror%2Ffrr.git bgpd: Fix warning on 32 bit systems We have a signed/unsigned comparison warning that this should fix. This should be ok because the range of input is a very limited value and should never be of concern Fixes: #1919 Signed-off-by: Donald Sharp --- diff --git a/bgpd/bgp_rpki.c b/bgpd/bgp_rpki.c index 1fb5bf19f1..7c9a134b0f 100644 --- a/bgpd/bgp_rpki.c +++ b/bgpd/bgp_rpki.c @@ -730,7 +730,7 @@ DEFPY (rpki_expire_interval, "Set expire interval\n" "Expire interval value\n") { - if (tmp >= polling_period) { + if ((unsigned int)tmp >= polling_period) { expire_interval = tmp; return CMD_SUCCESS; }