From 02aa73312d6078b6de26757d5a558e0085ec20b5 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Tue, 1 Feb 2005 15:38:20 +0000 Subject: make structure initializers use C99 standard (Harald Welte) --- extensions/libip6t_standard.c | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) (limited to 'extensions/libip6t_standard.c') diff --git a/extensions/libip6t_standard.c b/extensions/libip6t_standard.c index b8a0ce79..c48882f1 100644 --- a/extensions/libip6t_standard.c +++ b/extensions/libip6t_standard.c @@ -47,20 +47,17 @@ save(const struct ip6t_ip6 *ip6, const struct ip6t_entry_target *target) { } -static -struct ip6tables_target standard -= { NULL, - "standard", - IPTABLES_VERSION, - IP6T_ALIGN(sizeof(int)), - IP6T_ALIGN(sizeof(int)), - &help, - &init, - &parse, - &final_check, - NULL, /* print */ - &save, - opts +static struct ip6tables_target standard = { + .name = "standard", + .version = IPTABLES_VERSION, + .size = IP6T_ALIGN(sizeof(int)), + .userspacesize = IP6T_ALIGN(sizeof(int)), + .help = &help, + .init = &init, + .parse = &parse, + .final_check = &final_check, + .save = &save, + .extra_opts = opts, }; void _init(void) -- cgit v1.2.3