summaryrefslogtreecommitdiffstats
path: root/extensions/libip6t_nth.c
diff options
context:
space:
mode:
author/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org>2005-02-01 15:38:20 +0000
committer/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org>2005-02-01 15:38:20 +0000
commit41dcb85df818852a14e4906721fd9977d45ccc07 (patch)
tree6063c31b752d5b6db91f096319850c3604259cb3 /extensions/libip6t_nth.c
parent850f33e7c309414a0ab1452db9f055912d5f24b4 (diff)
make structure initializers use C99 standard (Harald Welte)
Diffstat (limited to 'extensions/libip6t_nth.c')
-rw-r--r--extensions/libip6t_nth.c25
1 files changed, 12 insertions, 13 deletions
diff --git a/extensions/libip6t_nth.c b/extensions/libip6t_nth.c
index 638074d..26eeb26 100644
--- a/extensions/libip6t_nth.c
+++ b/extensions/libip6t_nth.c
@@ -217,19 +217,18 @@ save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
printf("--packet %u ", nthinfo->packet );
}
-struct ip6tables_match nth
-= { NULL,
- "nth",
- IPTABLES_VERSION,
- IP6T_ALIGN(sizeof(struct ip6t_nth_info)),
- IP6T_ALIGN(sizeof(struct ip6t_nth_info)),
- &help,
- &init,
- &parse,
- &final_check,
- &print,
- &save,
- opts
+struct ip6tables_match nth = {
+ .name = "nth",
+ .version = IPTABLES_VERSION,
+ .size = IP6T_ALIGN(sizeof(struct ip6t_nth_info)),
+ .userspacesize = IP6T_ALIGN(sizeof(struct ip6t_nth_info)),
+ .help = &help,
+ .init = &init,
+ .parse = &parse,
+ .final_check = &final_check,
+ .print = &print,
+ .save = &save,
+ .extra_opts = opts,
};
void _init(void)