summaryrefslogtreecommitdiffstats
path: root/iptables-save.c
diff options
context:
space:
mode:
authorGáspár Lajos <swifty@freemail.hu>2008-03-27 08:20:39 +0100
committerPatrick McHardy <kaber@trash.net>2008-04-14 08:51:33 +0200
commit7bc3cb7eec4c4db5edc4b503a5dfab799e0bce62 (patch)
treeb6f11a10d7a28fd5dd0d779599d7fa22c59faf49 /iptables-save.c
parenta7d9762f3190a9487f40334d6fd6ea3a59af50a1 (diff)
iptables: use C99 lists for struct options
Diffstat (limited to 'iptables-save.c')
-rw-r--r--iptables-save.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/iptables-save.c b/iptables-save.c
index 1ce20901..4272202e 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) \