snmp: fix warnings
batch-fix all warnings that come up when enabling AgentX SNMP support.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
diff --git a/ospfd/ospf_snmp.c b/ospfd/ospf_snmp.c
index 7f7b157..9f91776 100644
--- a/ospfd/ospf_snmp.c
+++ b/ospfd/ospf_snmp.c
@@ -986,7 +986,7 @@
offsetlen = *length - v->namelen;
len = offsetlen;
- if (len > IN_ADDR_SIZE)
+ if (len > (int)IN_ADDR_SIZE)
len = IN_ADDR_SIZE;
oid2in_addr (offset, len, area_id);
@@ -1026,7 +1026,7 @@
else
{
ls_id_next = 0;
- if (len > IN_ADDR_SIZE)
+ if (len > (int)IN_ADDR_SIZE)
len = IN_ADDR_SIZE;
oid2in_addr (offset, len, ls_id);
@@ -1042,7 +1042,7 @@
else
{
router_id_next = 0;
- if (len > IN_ADDR_SIZE)
+ if (len > (int)IN_ADDR_SIZE)
len = IN_ADDR_SIZE;
oid2in_addr (offset, len, router_id);
@@ -1152,7 +1152,7 @@
{
oid *offset;
int offsetlen;
- unsigned int len;
+ int len;
struct ospf *ospf;
struct ospf_area *area;
struct ospf_area_range *range;
@@ -1193,7 +1193,7 @@
offsetlen = *length - v->namelen;
len = offsetlen;
- if (len > IN_ADDR_SIZE)
+ if (len > (int)IN_ADDR_SIZE)
len = IN_ADDR_SIZE;
oid2in_addr (offset, len, area_id);
@@ -1215,7 +1215,7 @@
if (len < 0)
len = 0;
- if (len > IN_ADDR_SIZE)
+ if (len > (int)IN_ADDR_SIZE)
len = IN_ADDR_SIZE;
oid2in_addr (offset, len, range_net);