]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Fix warning on 32 bit systems 1922/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 17 Mar 2018 19:08:13 +0000 (15:08 -0400)
committerMartin Winter <mwinter@opensourcerouting.org>
Sun, 18 Mar 2018 12:13:21 +0000 (05:13 -0700)
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 19d4769cd3fef1371c00310e0a720595735c39c3..4100a275e5fd6e9c3b218ec61e7ecd2b8611c44d 100644 (file)
@@ -746,7 +746,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;
        }