summaryrefslogtreecommitdiffstats
path: root/ip6tables-restore.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 /ip6tables-restore.c
parenta7d9762f3190a9487f40334d6fd6ea3a59af50a1 (diff)
iptables: use C99 lists for struct options
Diffstat (limited to 'ip6tables-restore.c')
-rw-r--r--ip6tables-restore.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/ip6tables-restore.c b/ip6tables-restore.c
index 2c3e95de..c2703dc5 100644
--- a/ip6tables-restore.c
+++ b/ip6tables-restore.c
@@ -29,15 +29,15 @@
static int binary = 0, counters = 0, verbose = 0, noflush = 0;
/* Keeping track of external matches and targets. */
-static struct option options[] = {
- { "binary", 0, 0, 'b' },
- { "counters", 0, 0, 'c' },
- { "verbose", 0, 0, 'v' },
- { "test", 0, 0, 't' },
- { "help", 0, 0, 'h' },
- { "noflush", 0, 0, 'n'},
- { "modprobe", 1, 0, 'M'},
- { 0 }
+static const struct option options[] = {
+ {.name = "binary", .has_arg = false, .val = 'b'},
+ {.name = "counters", .has_arg = false, .val = 'c'},
+ {.name = "verbose", .has_arg = false, .val = 'v'},
+ {.name = "test", .has_arg = false, .val = 't'},
+ {.name = "help", .has_arg = false, .val = 'h'},
+ {.name = "noflush", .has_arg = false, .val = 'n'},
+ {.name = "modprobe", .has_arg = true, .val = 'M'},
+ {NULL},
};
static void print_usage(const char *name, const char *version) __attribute__((noreturn));