[monitoring-plugins] Remove dead, commented code

Lorenz Kästle git at monitoring-plugins.org
Tue Aug 29 08:30:12 CEST 2023


 Module: monitoring-plugins
 Branch: master
 Commit: 9e32be80d673cb9bd7877cad8b6e24b99e79e8b0
 Author: Lorenz Kästle <lorenz.kaestle at netways.de>
   Date: Mon Aug 28 11:15:59 2023 +0200
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=9e32be8

Remove dead, commented code

---

 plugins/check_snmp.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index 43e79a1..2acada2 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -347,15 +347,6 @@ main (int argc, char **argv)
 	 server_address,
 	 port);
 
-
-
-	/* This is just for display purposes, so it can remain a string */
-	/*
-	xasprintf(&cl_hidden_auth, "%s -Le -t %d -r %d -m %s -v %s %s %s %s:%s",
-		snmpcmd, timeout_interval, retries, strlen(miblist) ? miblist : "''", proto, "[context]", "[authpriv]",
-		server_address, port);
-		*/
-
 	for (i = 0; i < numoids; i++) {
 		command_line[index++] = oids[i];
 		xasprintf(&cl_hidden_auth, "%s %s", cl_hidden_auth, oids[i]);



More information about the Commits mailing list