]> git.puffer.fish Git - mirror/frr.git/commitdiff
vrrpd: fix unsigned - signed cmp
authorQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 28 Feb 2019 21:41:21 +0000 (21:41 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 17 May 2019 00:27:08 +0000 (00:27 +0000)
For some reason this warning only shows up on armel

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
vrrpd/vrrp_vty.c

index 4c474489f4b00b319b56ae44f9855a273b687dd8..3f6918539cc441900d53135b8d8795c6320cc9f6 100644 (file)
@@ -555,7 +555,7 @@ DEFPY(vrrp_vrid_show,
        for (ALL_LIST_ELEMENTS_RO(ll, ln, vr)) {
                if (ifn && !strmatch(ifn, vr->ifp->name))
                        continue;
-               if (vrid && vrid != vr->vrid)
+               if ((uint8_t) vrid && vrid != vr->vrid)
                        continue;
 
                if (!json)