Hi. Here's the first of a set of patches converting more files in net/ to use C99 initializers. The patches remove warnings if '-W' is used and aid code readability. Art Haas ===== net/unix/sysctl_net_unix.c 1.3 vs edited ===== --- 1.3/net/unix/sysctl_net_unix.c Tue Feb 5 01:35:53 2002 +++ edited/net/unix/sysctl_net_unix.c Wed Feb 12 16:12:42 2003 @@ -15,20 +15,37 @@ extern int sysctl_unix_max_dgram_qlen; ctl_table unix_table[] = { - {NET_UNIX_MAX_DGRAM_QLEN, "max_dgram_qlen", - &sysctl_unix_max_dgram_qlen, sizeof(int), 0600, NULL, - &proc_dointvec }, - {0} + { + .ctl_name = NET_UNIX_MAX_DGRAM_QLEN, + .procname = "max_dgram_qlen", + .data = &sysctl_unix_max_dgram_qlen, + .maxlen = sizeof(int), + .mode = 0600, + .proc_handler = &proc_dointvec + }, + { .ctl_name = 0 } }; static ctl_table unix_net_table[] = { - {NET_UNIX, "unix", NULL, 0, 0555, unix_table}, - {0} + { + .ctl_name = NET_UNIX, + .procname = "unix", + .maxlen = 0, + .mode = 0555, + .child = unix_table + }, + { .ctl_name = 0 } }; static ctl_table unix_root_table[] = { - {CTL_NET, "net", NULL, 0, 0555, unix_net_table}, - {0} + { + .ctl_name = CTL_NET, + .procname = "net", + .maxlen = 0, + .mode = 0555, + .child = unix_net_table + }, + { .ctl_name = 0 } }; static struct ctl_table_header * unix_sysctl_header; -- 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