summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2021-12-03 10:21:53 +0100
committerRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2022-03-15 21:04:32 +0100
commitaee97b2849f2d91cbb10393bfb77b6aa8b04edc2 (patch)
treef1a1fbf6c3e019eaa732e9feedd81b58d19740cb
parent22f7b41d9138f6e69395a8d7da894a50d95f5abf (diff)
downloadmonitoring-plugins-aee97b2.tar.gz
Remove unused variable
-rw-r--r--plugins-root/check_icmp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c
index 783b85d1..7a3d7464 100644
--- a/plugins-root/check_icmp.c
+++ b/plugins-root/check_icmp.c
@@ -468,7 +468,6 @@ main(int argc, char **argv)
468 /* Parse protocol arguments first */ 468 /* Parse protocol arguments first */
469 for(i = 1; i < argc; i++) { 469 for(i = 1; i < argc; i++) {
470 while((arg = getopt(argc, argv, opts_str)) != EOF) { 470 while((arg = getopt(argc, argv, opts_str)) != EOF) {
471 unsigned short size;
472 switch(arg) { 471 switch(arg) {
473 case '4': 472 case '4':
474 if (address_family != -1) 473 if (address_family != -1)
@@ -491,10 +490,10 @@ main(int argc, char **argv)
491 /* Reset argument scanning */ 490 /* Reset argument scanning */
492 optind = 1; 491 optind = 1;
493 492
493 unsigned short size;
494 /* parse the arguments */ 494 /* parse the arguments */
495 for(i = 1; i < argc; i++) { 495 for(i = 1; i < argc; i++) {
496 while((arg = getopt(argc, argv, opts_str)) != EOF) { 496 while((arg = getopt(argc, argv, opts_str)) != EOF) {
497 unsigned short size;
498 switch(arg) { 497 switch(arg) {
499 case 'v': 498 case 'v':
500 debug++; 499 debug++;