diff options
author | ngie <ngie@FreeBSD.org> | 2015-12-31 19:32:46 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-12-31 19:32:46 +0000 |
commit | ec816a9eb6d0f31d89b4dcc02483075764269096 (patch) | |
tree | 297cd46741a7b617c6524172e014d9a54d6a4b96 /contrib/bsnmp/snmpd | |
parent | d0a1092eab8c16b478eec22b4155b9bf31897960 (diff) | |
download | FreeBSD-src-ec816a9eb6d0f31d89b4dcc02483075764269096.zip FreeBSD-src-ec816a9eb6d0f31d89b4dcc02483075764269096.tar.gz |
MFC r292710:
Remove unused function `act_getkernstring`
This fixes a clang -Wunused warning
Differential Revision: https://reviews.freebsd.org/D4697
Reported by: Jenkins
Reviewed by: araujo, bapt
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'contrib/bsnmp/snmpd')
-rw-r--r-- | contrib/bsnmp/snmpd/action.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/contrib/bsnmp/snmpd/action.c b/contrib/bsnmp/snmpd/action.c index ebba0f5..e8fd715 100644 --- a/contrib/bsnmp/snmpd/action.c +++ b/contrib/bsnmp/snmpd/action.c @@ -60,29 +60,6 @@ static const struct asn_oid #endif /* - * Get a string value from the KERN sysctl subtree. - */ -static char * -act_getkernstring(int id) -{ - int mib[2]; - size_t len; - char *string; - - mib[0] = CTL_KERN; - mib[1] = id; - if (sysctl(mib, 2, NULL, &len, NULL, 0) != 0) - return (NULL); - if ((string = malloc(len)) == NULL) - return (NULL); - if (sysctl(mib, 2, string, &len, NULL, 0) != 0) { - free(string); - return (NULL); - } - return (string); -} - -/* * Get an integer value from the KERN sysctl subtree. */ static char * |