From 32b8e61e4e5bd405d9ad07bf9468498dfbb19f9e Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 23 Jul 2010 21:16:14 +0200 Subject: all: consistent syntax use in struct option Try to inhibit copypasting old stuff. Signed-off-by: Jan Engelhardt --- extensions/libip6t_hl.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'extensions/libip6t_hl.c') diff --git a/extensions/libip6t_hl.c b/extensions/libip6t_hl.c index 09589b19..6e58250c 100644 --- a/extensions/libip6t_hl.c +++ b/extensions/libip6t_hl.c @@ -5,7 +5,7 @@ * This program is released under the terms of GNU GPL * Cleanups by Stephane Ouellette */ - +#include #include #include #include @@ -116,11 +116,11 @@ static void hl_save(const void *ip, const struct xt_entry_match *match) } static const struct option hl_opts[] = { - { .name = "hl", .has_arg = 1, .val = '2' }, - { .name = "hl-eq", .has_arg = 1, .val = '2' }, - { .name = "hl-lt", .has_arg = 1, .val = '3' }, - { .name = "hl-gt", .has_arg = 1, .val = '4' }, - { .name = NULL } + {.name = "hl", .has_arg = true, .val = '2'}, + {.name = "hl-eq", .has_arg = true, .val = '2'}, + {.name = "hl-lt", .has_arg = true, .val = '3'}, + {.name = "hl-gt", .has_arg = true, .val = '4'}, + XT_GETOPT_TABLEEND, }; static struct xtables_match hl_mt6_reg = { -- cgit v1.2.3