[monitoring-plugins] Remove unused variable

RincewindsHat git at monitoring-plugins.org
Tue Mar 15 21:10:13 CET 2022


 Module: monitoring-plugins
 Branch: check_icmp_buffer_offerflow
 Commit: aee97b2849f2d91cbb10393bfb77b6aa8b04edc2
 Author: RincewindsHat <12514511+RincewindsHat at users.noreply.github.com>
   Date: Fri Dec  3 10:21:53 2021 +0100
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=aee97b2

Remove unused variable

---

 plugins-root/check_icmp.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c
index 783b85d..7a3d746 100644
--- a/plugins-root/check_icmp.c
+++ b/plugins-root/check_icmp.c
@@ -468,7 +468,6 @@ main(int argc, char **argv)
 	/* Parse protocol arguments first */
 	for(i = 1; i < argc; i++) {
 		while((arg = getopt(argc, argv, opts_str)) != EOF) {
-			unsigned short size;
 			switch(arg) {
 			case '4':
 				if (address_family != -1)
@@ -491,10 +490,10 @@ main(int argc, char **argv)
 	/* Reset argument scanning */
 	optind = 1;
 
+	unsigned short size;
 	/* parse the arguments */
 	for(i = 1; i < argc; i++) {
 		while((arg = getopt(argc, argv, opts_str)) != EOF) {
-			unsigned short size;
 			switch(arg) {
 			case 'v':
 				debug++;



More information about the Commits mailing list