From 6f577f582aa83ef89e560c36ed5ad4cc34817d23 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Sat, 17 Mar 2018 15:08:13 -0400 Subject: [PATCH] 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 --- bgpd/bgp_rpki.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5