mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-06 12:45:13 +02:00
pknock: use C99 initializers for pknock_mt_opts
This commit is contained in:
@@ -19,14 +19,14 @@
|
|||||||
|
|
||||||
static const struct option pknock_mt_opts[] = {
|
static const struct option pknock_mt_opts[] = {
|
||||||
/* .name, .has_arg, .flag, .val */
|
/* .name, .has_arg, .flag, .val */
|
||||||
{ "knockports", 1, 0, 'k' },
|
{.name = "knockports", .has_arg = true, .val = 'k'},
|
||||||
{ "time", 1, 0, 't' },
|
{.name = "time", .has_arg = true, .val = 't'},
|
||||||
{ "name", 1, 0, 'n' },
|
{.name = "name", .has_arg = true, .val = 'n'},
|
||||||
{ "opensecret", 1, 0, 'a' },
|
{.name = "opensecret", .has_arg = true, .val = 'a'},
|
||||||
{ "closesecret",1, 0, 'z' },
|
{.name = "closesecret", .has_arg = true, .val = 'z'},
|
||||||
{ "strict", 0, 0, 'x' },
|
{.name = "strict", .has_arg = false, .val = 'x'},
|
||||||
{ "checkip", 0, 0, 'c' },
|
{.name = "checkip", .has_arg = false, .val = 'c'},
|
||||||
{ .name = NULL }
|
{NULL},
|
||||||
};
|
};
|
||||||
|
|
||||||
static void pknock_mt_help(void)
|
static void pknock_mt_help(void)
|
||||||
|
Reference in New Issue
Block a user