summaryrefslogtreecommitdiffstats
path: root/ripd
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 17:33:29 +0200
commit7e6350359a16036e225373f10721dfdb903ed202 (patch)
treede5eb69cb0f2f1847ae790eadf4cd918384dfb85 /ripd
parentwatchquagga: break excessively long help string (diff)
downloadfrr-7e6350359a16036e225373f10721dfdb903ed202.tar.xz
frr-7e6350359a16036e225373f10721dfdb903ed202.zip
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 'ripd')
-rw-r--r--ripd/rip_snmp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ripd/rip_snmp.c b/ripd/rip_snmp.c
index 9d4e60dbb..4b7d1b4c5 100644
--- a/ripd/rip_snmp.c
+++ b/ripd/rip_snmp.c
@@ -295,7 +295,7 @@ rip2PeerLookup (struct variable *v, oid name[], size_t *length,
peer = rip_peer_lookup (addr);
- if (peer->domain == name[v->namelen + sizeof (struct in_addr)])
+ if (peer->domain == (int)name[v->namelen + sizeof (struct in_addr)])
return peer;
return NULL;
@@ -311,8 +311,8 @@ rip2PeerLookup (struct variable *v, oid name[], size_t *length,
peer = rip_peer_lookup (addr);
if (peer)
{
- if ((len < sizeof (struct in_addr) + 1) ||
- (peer->domain > name[v->namelen + sizeof (struct in_addr)]))
+ if ((len < (int)sizeof (struct in_addr) + 1) ||
+ (peer->domain > (int)name[v->namelen + sizeof (struct in_addr)]))
{
oid_copy_addr (name + v->namelen, &peer->addr,
sizeof (struct in_addr));