mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 22:14:49 +00:00
zebra: fix sign warning in SNMP code
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
45ef430000
commit
7961551a1c
@ -343,7 +343,7 @@ get_fwtable_route_node(struct variable *v, oid objid[], size_t *objid_len,
|
||||
*/
|
||||
|
||||
if (*objid_len > (unsigned) v->namelen)
|
||||
oid2in_addr (objid + v->namelen, MIN(4, *objid_len - v->namelen), &dest);
|
||||
oid2in_addr (objid + v->namelen, MIN(4U, *objid_len - v->namelen), &dest);
|
||||
|
||||
if (*objid_len > (unsigned) v->namelen + 4)
|
||||
proto = objid[v->namelen + 4];
|
||||
@ -352,7 +352,7 @@ get_fwtable_route_node(struct variable *v, oid objid[], size_t *objid_len,
|
||||
policy = objid[v->namelen + 5];
|
||||
|
||||
if (*objid_len > (unsigned) v->namelen + 6)
|
||||
oid2in_addr (objid + v->namelen + 6, MIN(4, *objid_len - v->namelen - 6),
|
||||
oid2in_addr (objid + v->namelen + 6, MIN(4U, *objid_len - v->namelen - 6),
|
||||
&nexthop);
|
||||
|
||||
/* Apply GETNEXT on not exact search */
|
||||
|
Loading…
Reference in New Issue
Block a user