Re: [PATCH] Switch kernel/sysctl.c to use C99 initializers

Christoph Hellwig (hch@infradead.org)
Sun, 9 Feb 2003 20:17:04 +0000


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/