src: add NULL to sentinel struct option

This commit is contained in:
Jan Engelhardt
2008-11-18 11:29:57 +01:00
parent 25e2fbdf7d
commit 3c0b26c4b9
4 changed files with 4 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ enum {
static const struct option chaos_tg_opts[] = {
{.name = "delude", .has_arg = false, .val = 'd'},
{.name = "tarpit", .has_arg = false, .val = 't'},
{},
{NULL},
};
static void chaos_tg_help(void)

View File

@@ -22,7 +22,7 @@ enum {
static const struct option logmark_tg_opts[] = {
{.name = "log-level", .has_arg = true, .val = 'l'},
{.name = "log-prefix", .has_arg = true, .val = 'p'},
{},
{NULL},
};
static void logmark_tg_help(void)

View File

@@ -30,7 +30,7 @@ enum {
static const struct option tee_tg_opts[] = {
{.name = "gateway", .has_arg = true, .val = 'g'},
{},
{NULL},
};
static void tee_tg_help(void)

View File

@@ -23,7 +23,7 @@ static const struct option portscan_mt_opts[] = {
{.name = "synscan", .has_arg = false, .val = 's'},
{.name = "cnscan", .has_arg = false, .val = 'c'},
{.name = "grscan", .has_arg = false, .val = 'g'},
{},
{NULL},
};
static void portscan_mt_help(void)