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/libxt_CHECKSUM.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'extensions/libxt_CHECKSUM.c') diff --git a/extensions/libxt_CHECKSUM.c b/extensions/libxt_CHECKSUM.c index 9a24443b..101a54ca 100644 --- a/extensions/libxt_CHECKSUM.c +++ b/extensions/libxt_CHECKSUM.c @@ -8,6 +8,7 @@ * * libxt_CHECKSUM.c borrowed some bits from libipt_ECN.c */ +#include #include #include #include @@ -24,8 +25,8 @@ static void CHECKSUM_help(void) } static const struct option CHECKSUM_opts[] = { - { "checksum-fill", 0, NULL, 'F' }, - { .name = NULL } + {.name = "checksum-fill", .has_arg = false, .val = 'F'}, + XT_GETOPT_TABLEEND, }; static int CHECKSUM_parse(int c, char **argv, int invert, unsigned int *flags, -- cgit v1.2.3