xtables: arp: Fix a compilation warning
This fixes such warning:
xtables-arp.c: In function ‘check_inverse’:
xtables-arp.c:561:54: attention : declaration of ‘optind’ shadows a
global declaration [-Wshadow]
Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
diff --git a/iptables/xtables-arp.c b/iptables/xtables-arp.c
index 18f285c..046ae41 100644
--- a/iptables/xtables-arp.c
+++ b/iptables/xtables-arp.c
@@ -557,16 +557,16 @@
}
static int
-check_inverse(const char option[], int *invert, int *optind, int argc)
+check_inverse(const char option[], int *invert, int *optidx, int argc)
{
if (option && strcmp(option, "!") == 0) {
if (*invert)
xtables_error(PARAMETER_PROBLEM,
"Multiple `!' flags not allowed");
*invert = TRUE;
- if (optind) {
- *optind = *optind+1;
- if (argc && *optind > argc)
+ if (optidx) {
+ *optidx = *optidx+1;
+ if (argc && *optidx > argc)
xtables_error(PARAMETER_PROBLEM,
"no argument following `!'");
}