diff options
author | Chris Caputo <ccaputo@alt.net> | 2009-05-06 15:16:12 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-05-06 15:28:34 -0700 |
commit | df1eb9288e93b9f24dc5e11e85d79b860eadf61c (patch) | |
tree | bb743257c76b044636e5acf948829e117ffea9de /ripd/rip_snmp.c | |
parent | bee9bd8f12f377df2412e811480a53bc69070369 (diff) | |
download | quagga-df1eb9288e93b9f24dc5e11e85d79b860eadf61c.tar.bz2 quagga-df1eb9288e93b9f24dc5e11e85d79b860eadf61c.tar.xz |
Compiler warning fixes for when --enable-snmp is configured.
Compiled on 32-bit and 64-bit linux gcc 4.1.2 platforms.
No run-time testing on 32-bit and limited run-time testing on 64-bit.
Diffstat (limited to 'ripd/rip_snmp.c')
-rw-r--r-- | ripd/rip_snmp.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/ripd/rip_snmp.c b/ripd/rip_snmp.c index d02c7610..61c47c71 100644 --- a/ripd/rip_snmp.c +++ b/ripd/rip_snmp.c @@ -93,10 +93,14 @@ oid rip_oid [] = { RIPV2MIB }; struct route_table *rip_ifaddr_table; /* Hook functions. */ -static u_char *rip2Globals (); -static u_char *rip2IfStatEntry (); -static u_char *rip2IfConfAddress (); -static u_char *rip2PeerTable (); +static u_char *rip2Globals (struct variable *, oid [], size_t *, + int, size_t *, WriteMethod **); +static u_char *rip2IfStatEntry (struct variable *, oid [], size_t *, + int, size_t *, WriteMethod **); +static u_char *rip2IfConfAddress (struct variable *, oid [], size_t *, + int, size_t *, WriteMethod **); +static u_char *rip2PeerTable (struct variable *, oid [], size_t *, + int, size_t *, WriteMethod **); struct variable rip_variables[] = { @@ -215,7 +219,7 @@ rip_ifaddr_delete (struct interface *ifp, struct connected *ifc) } } -struct interface * +static struct interface * rip_ifaddr_lookup_next (struct in_addr *addr) { struct prefix_ipv4 p; |