From f4862451c892d66edb53dad79a136cf152cd1df6 Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net" Date: Mon, 14 Apr 2008 06:51:33 +0000 Subject: [PATCH 4/8] iptables: use C99 lists for struct options --- iptables-save.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'iptables-save.c') diff --git a/iptables-save.c b/iptables-save.c index 1ce2090..4272202 100644 --- a/iptables-save.c +++ b/iptables-save.c @@ -23,12 +23,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}, }; #define IP_PARTS_NATIVE(n) \ -- cgit v1.2.3