From fb0a901762e108e81b05cd6cba38426fb9d2bceb Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Wed, 21 Sep 2016 15:26:59 +1000 Subject: [PATCH] * fix argc for some commands --- src/commands.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands.c b/src/commands.c index 65709f3..9959cd4 100644 --- a/src/commands.c +++ b/src/commands.c @@ -54,7 +54,7 @@ struct f2b_cmd_t { .help = "Gracefully terminate f2b daemon", }, [CMD_JAIL_STATUS] = { - .argc = 2, .tokenc = 3, + .argc = 1, .tokenc = 3, .tokens = { "jail", "", "status", NULL }, .help = "Show status and stats of given jail", }, @@ -84,7 +84,7 @@ struct f2b_cmd_t { .help = "Show matches stats for jail regexps", }, [CMD_JAIL_FILTER_RELOAD] = { - .argc = 2, .tokenc = 4, + .argc = 1, .tokenc = 4, .tokens = { "jail", "", "filter", "reload", NULL }, .help = "Reload regexps for given jail", },