From aee97b2849f2d91cbb10393bfb77b6aa8b04edc2 Mon Sep 17 00:00:00 2001 From: RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> Date: Fri, 3 Dec 2021 10:21:53 +0100 Subject: Remove unused variable 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++; -- cgit v0.10-9-g596f