Author: ngie
Date: Thu Dec 31 19:32:46 2015
New Revision: 292998
URL: https://svnweb.freebsd.org/changeset/base/292998

Log:
  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

Modified:
  stable/10/contrib/bsnmp/snmpd/action.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/contrib/bsnmp/snmpd/action.c
==============================================================================
--- stable/10/contrib/bsnmp/snmpd/action.c      Thu Dec 31 19:25:35 2015        
(r292997)
+++ stable/10/contrib/bsnmp/snmpd/action.c      Thu Dec 31 19:32:46 2015        
(r292998)
@@ -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 *
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to