diff options
author | ngie <ngie@FreeBSD.org> | 2015-12-24 22:22:02 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-12-24 22:22:02 +0000 |
commit | a8cab145cb4fd1e660e5f7aef482de607d876c63 (patch) | |
tree | 4390055f38755b2f3e62a784d06fcd2bdc7a32d3 /contrib/bsnmp | |
parent | 7659430654c39cefae155e06694de445d37cd1dd (diff) | |
download | FreeBSD-src-a8cab145cb4fd1e660e5f7aef482de607d876c63.zip FreeBSD-src-a8cab145cb4fd1e660e5f7aef482de607d876c63.tar.gz |
Remove unused function `act_getkernstring`
This fixes a clang -Wunused warning
Differential Revision: https://reviews.freebsd.org/D4697
MFC after: 1 week
Reported by: Jenkins
Reviewed by: araujo, bapt
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'contrib/bsnmp')
-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 * |