diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2010-07-23 21:16:14 +0200 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2010-07-23 21:25:43 +0200 |
commit | 32b8e61e4e5bd405d9ad07bf9468498dfbb19f9e (patch) | |
tree | 5a9fab83069d6dd29263906b88f58f58aec7d4e0 /extensions/libipt_ECN.c | |
parent | 854fe779211ffa051009b68b3f07673938b714c5 (diff) |
all: consistent syntax use in struct option
Try to inhibit copypasting old stuff.
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'extensions/libipt_ECN.c')
-rw-r--r-- | extensions/libipt_ECN.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/extensions/libipt_ECN.c b/extensions/libipt_ECN.c index bf1f8a5a..75ea0114 100644 --- a/extensions/libipt_ECN.c +++ b/extensions/libipt_ECN.c @@ -8,6 +8,7 @@ * * $Id$ */ +#include <stdbool.h> #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -32,11 +33,11 @@ static void ECN_help(void) static const struct option ECN_opts[] = { - { "ecn-tcp-remove", 0, NULL, 'F' }, - { "ecn-tcp-cwr", 1, NULL, 'G' }, - { "ecn-tcp-ece", 1, NULL, 'H' }, - { "ecn-ip-ect", 1, NULL, '9' }, - { .name = NULL } + {.name = "ecn-tcp-remove", .has_arg = false, .val = 'F'}, + {.name = "ecn-tcp-cwr", .has_arg = true, .val = 'G'}, + {.name = "ecn-tcp-ece", .has_arg = true, .val = 'H'}, + {.name = "ecn-ip-ect", .has_arg = true, .val = '9'}, + XT_GETOPT_TABLEEND, }; static int ECN_parse(int c, char **argv, int invert, unsigned int *flags, |