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_limit.c | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'extensions/libip6t_limit.c') diff --git a/extensions/libip6t_limit.c b/extensions/libip6t_limit.c index 5084946a..927b6d14 100644 --- a/extensions/libip6t_limit.c +++ b/extensions/libip6t_limit.c @@ -177,20 +177,18 @@ static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match printf("--limit-burst %u ", r->burst); } -static -struct ip6tables_match limit -= { NULL, - "limit", - IPTABLES_VERSION, - IP6T_ALIGN(sizeof(struct ip6t_rateinfo)), - offsetof(struct ip6t_rateinfo, prev), - &help, - &init, - &parse, - &final_check, - &print, - &save, - opts +static struct ip6tables_match limit = { + .name = "limit", + .version = IPTABLES_VERSION, + .size = IP6T_ALIGN(sizeof(struct ip6t_rateinfo)), + .userspacesize = offsetof(struct ip6t_rateinfo, prev), + .help = &help, + .init = &init, + .parse = &parse, + .final_check = &final_check, + .print = &print, + .save = &save, + .extra_opts = opts, }; void _init(void) -- cgit v1.2.3