[PATCH] C99 initializers for net/ipv6/sysctl_net_ipv6.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.

This is the third ...

Art Haas

===== net/ipv6/sysctl_net_ipv6.c 1.4 vs edited =====
--- 1.4/net/ipv6/sysctl_net_ipv6.c	Thu Oct 24 05:50:08 2002
+++ edited/net/ipv6/sysctl_net_ipv6.c	Tue Feb 11 09:38:02 2003
@@ -20,24 +20,54 @@
 #ifdef CONFIG_SYSCTL
 
 ctl_table ipv6_table[] = {
-	{NET_IPV6_ROUTE, "route", NULL, 0, 0555, ipv6_route_table},
-	{NET_IPV6_ICMP, "icmp", NULL, 0, 0500, ipv6_icmp_table},
-	{NET_IPV6_BINDV6ONLY, "bindv6only",
-	 &sysctl_ipv6_bindv6only, sizeof(int), 0644, NULL, &proc_dointvec},
-	{0}
+	{
+		.ctl_name	= NET_IPV6_ROUTE,
+		.procname	= "route",
+		.maxlen		= 0,
+		.mode		= 0555,
+		.child		= ipv6_route_table
+	},
+	{
+		.ctl_name	= NET_IPV6_ICMP,
+		.procname	= "icmp",
+		.maxlen		= 0,
+		.mode		= 0500,
+		.child		= ipv6_icmp_table
+	},
+	{
+		.ctl_name	= NET_IPV6_BINDV6ONLY,
+		.procname	= "bindv6only",
+		.data		= &sysctl_ipv6_bindv6only,
+		.maxlen		= sizeof(int),
+		.mode		= 0644,
+		.proc_handler	= &proc_dointvec
+	},
+	{ .ctl_name = 0 }
 };
 
 #ifdef MODULE
 static struct ctl_table_header *ipv6_sysctl_header;
 
 static ctl_table ipv6_net_table[] = {
-	{NET_IPV6, "ipv6", NULL, 0, 0555, ipv6_table},
-        {0}
+	{
+		.ctl_name	= NET_IPV6,
+		.procname	= "ipv6",
+		.maxlen		= 0,
+		.mode		= 0555,
+		.child		= ipv6_table
+	},
+        { .ctl_name = 0 }
 };
 
 static ctl_table ipv6_root_table[] = {
-	{CTL_NET, "net", NULL, 0, 0555, ipv6_net_table},
-        {0}
+	{
+		.ctl_name	= CTL_NET,
+		.procname	= "net",
+		.maxlen		= 0,
+		.mode		= 0555,
+		.child		= ipv6_net_table
+	},
+        { .ctl_name = 0 }
 };
 
 void ipv6_sysctl_register(void)
-- 
They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety.
 -- Benjamin Franklin, Historical Review of Pennsylvania, 1759
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux