summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index d830c7a2..6c182358 100644
--- a/src/main.c
+++ b/src/main.c
@@ -169,6 +169,8 @@ static void print_option(const struct nft_opt *opt)
static void show_help(const char *name)
{
+ size_t i;
+
printf("Usage: %s [ options ] [ cmds... ]\n"
"\n"
"Options:\n", name);
@@ -185,7 +187,7 @@ static void show_help(const char *name)
fputs("\n", stdout);
- for (size_t i = IDX_INTERACTIVE + 1; i < NR_NFT_OPTIONS; ++i)
+ for (i = IDX_INTERACTIVE + 1; i < NR_NFT_OPTIONS; ++i)
print_option(&nft_options[i]);
fputs("\n", stdout);