Source-Changes-HG archive

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

[src/netbsd-2-0]: src/sys/kern Pullup rev 1.173 (requested by atatat in ticke...



details:   https://anonhg.NetBSD.org/src/rev/a4552dd7b317
branches:  netbsd-2-0
changeset: 560593:a4552dd7b317
user:      jmc <jmc%NetBSD.org@localhost>
date:      Wed Apr 28 05:33:39 2004 +0000

description:
Pullup rev 1.173 (requested by atatat in ticket #194)

Be consistent about using sysc_init_field()

diffstat:

 sys/kern/kern_sysctl.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 0361c6829220 -r a4552dd7b317 sys/kern/kern_sysctl.c
--- a/sys/kern/kern_sysctl.c    Wed Apr 28 05:33:33 2004 +0000
+++ b/sys/kern/kern_sysctl.c    Wed Apr 28 05:33:39 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_sysctl.c,v 1.169.2.3 2004/04/28 05:32:25 jmc Exp $        */
+/*     $NetBSD: kern_sysctl.c,v 1.169.2.4 2004/04/28 05:33:39 jmc Exp $        */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -75,7 +75,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_sysctl.c,v 1.169.2.3 2004/04/28 05:32:25 jmc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_sysctl.c,v 1.169.2.4 2004/04/28 05:33:39 jmc Exp $");
 
 #include "opt_defcorename.h"
 #include "opt_insecure.h"
@@ -128,8 +128,7 @@
         *
         *      .sysctl_size = sizeof(struct sysctlnode),
         */
-       ._sysctl_size = { .__sysc_ustr = { .__sysc_sdatum =
-               sizeof(struct sysctlnode), }, },
+       sysc_init_field(_sysctl_size, sizeof(struct sysctlnode)),
        .sysctl_name = "(root)",
 };
 



Home | Main Index | Thread Index | Old Index