]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: Fix warning on 32 bit systems
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 17 Mar 2018 19:08:13 +0000 (15:08 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 17 Mar 2018 19:09:42 +0000 (15:09 -0400)
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 <sharpd@cumulusnetworks.com>
bgpd/bgp_rpki.c

index 1fb5bf19f1846eda45e136c5090395da418a772b..7c9a134b0f5af3dc6739870617628f025cf28ff5 100644 (file)
@@ -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;
        }