From eb99b9dd5ff72a766fd529c0c2ea202b84f2b28b Mon Sep 17 00:00:00 2001 From: Art Haas <ahaas@airmail.net> Date: Wed, 12 Feb 2003 05:52:21 -0800 Subject: [PATCH] [PATCH] C99 initializers for net/ipv6/netfilter/ip6_queue.c --- net/ipv6/netfilter/ip6_queue.c | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/net/ipv6/netfilter/ip6_queue.c b/net/ipv6/netfilter/ip6_queue.c index aa87c34de72a..4456469a8173 100644 --- a/net/ipv6/netfilter/ip6_queue.c +++ b/net/ipv6/netfilter/ip6_queue.c @@ -628,19 +628,37 @@ static int sysctl_maxlen = IPQ_QMAX_DEFAULT; static struct ctl_table_header *ipq_sysctl_header; static ctl_table ipq_table[] = { - { NET_IPQ_QMAX, NET_IPQ_QMAX_NAME, &sysctl_maxlen, - sizeof(sysctl_maxlen), 0644, NULL, proc_dointvec }, - { 0 } + { + .ctl_name = NET_IPQ_QMAX, + .procname = NET_IPQ_QMAX_NAME, + .data = &sysctl_maxlen, + .maxlen = sizeof(sysctl_maxlen), + .mode = 0644, + .proc_handler = proc_dointvec + }, + { .ctl_name = 0 } }; static ctl_table ipq_dir_table[] = { - {NET_IPV6, "ipv6", NULL, 0, 0555, ipq_table, 0, 0, 0, 0, 0}, - { 0 } + { + .ctl_name = NET_IPV6, + .procname = "ipv6", + .maxlen = 0, + .mode = 0555, + .child = ipq_table + }, + { .ctl_name = 0 } }; static ctl_table ipq_root_table[] = { - {CTL_NET, "net", NULL, 0, 0555, ipq_dir_table, 0, 0, 0, 0, 0}, - { 0 } + { + .ctl_name = CTL_NET, + .procname = "net", + .maxlen = 0, + .mode = 0555, + .child = ipq_dir_table + }, + { .ctl_name = 0 } }; static int -- 2.30.9