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/libipt_ttl.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'extensions/libipt_ttl.c') diff --git a/extensions/libipt_ttl.c b/extensions/libipt_ttl.c index e2fbcd5b..34d0f235 100644 --- a/extensions/libipt_ttl.c +++ b/extensions/libipt_ttl.c @@ -4,7 +4,7 @@ * $Id$ * * This program is released under the terms of GNU GPL */ - +#include #include #include #include @@ -139,11 +139,11 @@ static void ttl_save(const void *ip, const struct xt_entry_match *match) } static const struct option ttl_opts[] = { - { "ttl", 1, NULL, '2' }, - { "ttl-eq", 1, NULL, '2'}, - { "ttl-lt", 1, NULL, '3'}, - { "ttl-gt", 1, NULL, '4'}, - { .name = NULL } + {.name = "ttl", .has_arg = true, .val = '2'}, + {.name = "ttl-eq", .has_arg = true, .val = '2'}, + {.name = "ttl-lt", .has_arg = true, .val = '3'}, + {.name = "ttl-gt", .has_arg = true, .val = '4'}, + XT_GETOPT_TABLEEND, }; static struct xtables_match ttl_mt_reg = { -- cgit v1.2.3