summaryrefslogtreecommitdiff
path: root/ospfd/ospf_snmp.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2015-03-04 06:44:57 +0100
committerDaniel Walton <dwalton@cumulusnetworks.com>2016-05-26 15:33:29 +0000
commit7e6350359a16036e225373f10721dfdb903ed202 (patch)
treede5eb69cb0f2f1847ae790eadf4cd918384dfb85 /ospfd/ospf_snmp.c
parente757c94097f6c4193e0acc5a3442298943e6a7a7 (diff)
snmp: fix warnings
batch-fix all warnings that come up when enabling AgentX SNMP support. Signed-off-by: David Lamparter <equinox@opensourcerouting.org> (cherry picked from commit dfee58f1d41a2e36c7f5f38a3ef5712224131824)
Diffstat (limited to 'ospfd/ospf_snmp.c')
-rw-r--r--ospfd/ospf_snmp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ospfd/ospf_snmp.c b/ospfd/ospf_snmp.c
index 7f7b157860..9f91776944 100644
--- a/ospfd/ospf_snmp.c
+++ b/ospfd/ospf_snmp.c
@@ -986,7 +986,7 @@ ospfLsdbLookup (struct variable *v, oid *name, size_t *length,
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 @@ ospfLsdbLookup (struct variable *v, oid *name, size_t *length,
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 @@ ospfLsdbLookup (struct variable *v, oid *name, size_t *length,
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 @@ ospfAreaRangeLookup (struct variable *v, oid *name, size_t *length,
{
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 @@ ospfAreaRangeLookup (struct variable *v, oid *name, size_t *length,
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 @@ ospfAreaRangeLookup (struct variable *v, oid *name, size_t *length,
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);