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_limit.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'extensions/libxt_limit.c') diff --git a/extensions/libxt_limit.c b/extensions/libxt_limit.c index c836303c..3f94e216 100644 --- a/extensions/libxt_limit.c +++ b/extensions/libxt_limit.c @@ -3,7 +3,7 @@ * Jérôme de Vivie * Hervé Eychenne */ - +#include #include #include #include @@ -29,9 +29,9 @@ XT_LIMIT_BURST); } static const struct option limit_opts[] = { - { "limit", 1, NULL, '%' }, - { "limit-burst", 1, NULL, '$' }, - { .name = NULL } + {.name = "limit", .has_arg = true, .val = '%'}, + {.name = "limit-burst", .has_arg = true, .val = '$'}, + XT_GETOPT_TABLEEND, }; static -- cgit v1.2.3