summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-12-31 19:32:46 +0000
committerngie <ngie@FreeBSD.org>2015-12-31 19:32:46 +0000
commitec816a9eb6d0f31d89b4dcc02483075764269096 (patch)
tree297cd46741a7b617c6524172e014d9a54d6a4b96
parentd0a1092eab8c16b478eec22b4155b9bf31897960 (diff)
downloadFreeBSD-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
-rw-r--r--contrib/bsnmp/snmpd/action.c23
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 *
OpenPOWER on IntegriCloud