summaryrefslogtreecommitdiffstats
path: root/contrib/bsnmp/snmpd/action.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/bsnmp/snmpd/action.c')
-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