svn commit: r295241 - user/ngie/bsnmp_cleanup/usr.sbin/bsnmpd/tools/libbsnmptools
Garrett Cooper
ngie at FreeBSD.org
Thu Feb 4 08:38:14 UTC 2016
Author: ngie
Date: Thu Feb 4 08:38:13 2016
New Revision: 295241
URL: https://svnweb.freebsd.org/changeset/base/295241
Log:
- Mark parameters to snmp_inetaddr2oct(..) and parse_inetaddr(..) unused to fix
a -Wunused warning as these are stub functions.
- Staticize snmp_text_conv to fix a -Wmissing-variable-declarations warning
Modified:
user/ngie/bsnmp_cleanup/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
Modified: user/ngie/bsnmp_cleanup/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
==============================================================================
--- user/ngie/bsnmp_cleanup/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c Thu Feb 4 08:32:05 2016 (r295240)
+++ user/ngie/bsnmp_cleanup/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c Thu Feb 4 08:38:13 2016 (r295241)
@@ -93,7 +93,7 @@ static char *snmp_oct2bits(uint32_t len,
static char *snmp_bits2oct(char *str, struct asn_oid *oid);
static int32_t parse_bits(struct snmp_value *value, char *string);
-struct snmp_text_conv {
+static struct snmp_text_conv {
enum snmp_tc tc;
const char *tc_str;
int32_t len;
@@ -1174,13 +1174,13 @@ snmp_oct2inetaddr(uint32_t len, char *oc
}
static char *
-snmp_inetaddr2oct(char *str, struct asn_oid *oid)
+snmp_inetaddr2oct(char *str __unused, struct asn_oid *oid __unused)
{
return (NULL);
}
static int32_t
-parse_inetaddr(struct snmp_value *value, char *string)
+parse_inetaddr(struct snmp_value *value __unused, char *string __unused)
{
return (-1);
}
More information about the svn-src-user
mailing list