From 41dcb85df818852a14e4906721fd9977d45ccc07 Mon Sep 17 00:00:00 2001 From: "/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org" Date: Tue, 1 Feb 2005 15:38:20 +0000 Subject: make structure initializers use C99 standard (Harald Welte) --- extensions/libip6t_ipv6header.c | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) (limited to 'extensions/libip6t_ipv6header.c') diff --git a/extensions/libip6t_ipv6header.c b/extensions/libip6t_ipv6header.c index 3437e22..a06ced6 100644 --- a/extensions/libip6t_ipv6header.c +++ b/extensions/libip6t_ipv6header.c @@ -298,19 +298,18 @@ save(const struct ip6t_ip6 *ip, } static -struct ip6tables_match ipv6header -= { NULL, - "ipv6header", - IPTABLES_VERSION, - IP6T_ALIGN(sizeof(struct ip6t_ipv6header_info)), - IP6T_ALIGN(sizeof(struct ip6t_ipv6header_info)), - &help, - &init, - &parse, - &final_check, - &print, - &save, - opts +struct ip6tables_match ipv6header = { + .name = "ipv6header", + .version = IPTABLES_VERSION, + .size = IP6T_ALIGN(sizeof(struct ip6t_ipv6header_info)), + .userspacesize = IP6T_ALIGN(sizeof(struct ip6t_ipv6header_info)), + .help = &help, + .init = &init, + .parse = &parse, + .final_check = &final_check, + .print = &print, + .save = &save, + .extra_opts = opts, }; void _init(void) -- cgit v1.2.3