lkml.org 
[lkml]   [2003]   [Feb]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Switch kernel/sysctl.c to use C99 initializers
On Fri, Feb 07, 2003 at 06:57:53PM -0600, Art Haas wrote:
> --- 1.37/kernel/sysctl.c Thu Dec 5 10:06:54 2002
> +++ edited/sysctl.c Fri Feb 7 18:12:14 2003
> @@ -147,121 +147,458 @@
> /* The default sysctl tables: */
>
> static ctl_table root_table[] = {
> - {CTL_KERN, "kernel", NULL, 0, 0555, kern_table},
> - {CTL_VM, "vm", NULL, 0, 0555, vm_table},
> + {
> + .ctl_name = CTL_KERN,
> + .procname = "kernel",
> + .data = NULL,
> + .maxlen = 0,
> + .mode = 0555,
> + .child = kern_table

I don't think this makes the code more readable..

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:33    [W:0.043 / U:3.348 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site