From 7bc3cb7eec4c4db5edc4b503a5dfab799e0bce62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1sp=C3=A1r=20Lajos?= Date: Thu, 27 Mar 2008 08:20:39 +0100 Subject: iptables: use C99 lists for struct options --- ip6tables-save.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'ip6tables-save.c') diff --git a/ip6tables-save.c b/ip6tables-save.c index e4408872..6e2fea5d 100644 --- a/ip6tables-save.c +++ b/ip6tables-save.c @@ -24,12 +24,12 @@ static int show_binary = 0, show_counters = 0; -static struct option options[] = { - { "binary", 0, 0, 'b' }, - { "counters", 0, 0, 'c' }, - { "dump", 0, 0, 'd' }, - { "table", 1, 0, 't' }, - { 0 } +static const struct option options[] = { + {.name = "binary", .has_arg = false, .val = 'b'}, + {.name = "counters", .has_arg = false, .val = 'c'}, + {.name = "dump", .has_arg = false, .val = 'd'}, + {.name = "table", .has_arg = true, .val = 't'}, + {NULL}, }; -- cgit v1.2.3