summaryrefslogtreecommitdiff
path: root/zebra/zebra_snmp.c
diff options
context:
space:
mode:
authorhasso <hasso>2004-10-12 20:50:58 +0000
committerhasso <hasso>2004-10-12 20:50:58 +0000
commit39db97e4e02eae08a1e18528367b6e9b07eb6a93 (patch)
tree2fb3a0269f4f2fe235ef722e3ad9cc8e6005bb6c /zebra/zebra_snmp.c
parent39ff11dc92d004b59d1ec786fd54b27111fee0b5 (diff)
Some compiler warnings fixes and fix for bugzilla #119.
Diffstat (limited to 'zebra/zebra_snmp.c')
-rw-r--r--zebra/zebra_snmp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/zebra/zebra_snmp.c b/zebra/zebra_snmp.c
index 5095095c..dece89ea 100644
--- a/zebra/zebra_snmp.c
+++ b/zebra/zebra_snmp.c
@@ -328,7 +328,7 @@ get_fwtable_route_node(struct variable *v, oid objid[], size_t *objid_len,
/* Short circuit exact matches of wrong length */
- if (exact && (*objid_len != v->namelen + 10))
+ if (exact && (*objid_len != (unsigned) v->namelen + 10))
return;
table = vrf_table (AFI_IP, SAFI_UNICAST, 0);
@@ -342,19 +342,19 @@ get_fwtable_route_node(struct variable *v, oid objid[], size_t *objid_len,
if (*objid_len > v->namelen)
oid2in_addr (objid + v->namelen, MIN(4, *objid_len - v->namelen), &dest);
- if (*objid_len > v->namelen + 4)
+ if (*objid_len > (unsigned) v->namelen + 4)
proto = objid[v->namelen + 4];
- if (*objid_len > v->namelen + 5)
+ if (*objid_len > (unsigned) v->namelen + 5)
policy = objid[v->namelen + 5];
- if (*objid_len > v->namelen + 6)
+ if (*objid_len > (unsigned) v->namelen + 6)
oid2in_addr (objid + v->namelen + 6, MIN(4, *objid_len - v->namelen - 6),
&nexthop);
/* Apply GETNEXT on not exact search */
- if (!exact && (*objid_len >= v->namelen + 10))
+ if (!exact && (*objid_len >= (unsigned) v->namelen + 10))
{
if (! in_addr_add((u_char *) &nexthop, 1))
return;