Be consistent about using sysc_init_field()

This commit is contained in:
atatat 2004-04-27 03:49:03 +00:00
parent 423f25048b
commit e5004170aa
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_sysctl.c,v 1.13 2004/03/24 15:34:52 atatat Exp $ */
/* $NetBSD: linux_sysctl.c,v 1.14 2004/04/27 03:49:03 atatat Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux_sysctl.c,v 1.13 2004/03/24 15:34:52 atatat Exp $");
__KERNEL_RCSID(0, "$NetBSD: linux_sysctl.c,v 1.14 2004/04/27 03:49:03 atatat Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -72,8 +72,8 @@ static struct sysctlnode linux_sysctl_root = {
.sysctl_flags = SYSCTL_VERSION|
CTLFLAG_ROOT|CTLTYPE_NODE|CTLFLAG_READWRITE,
.sysctl_num = 0,
.sysctl_size = sizeof(struct sysctlnode),
.sysctl_name = "(linux_root)",
sysc_init_field(_sysctl_size, sizeof(struct sysctlnode)),
};
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: netbsd32_sysctl.c,v 1.14 2004/03/24 15:34:52 atatat Exp $ */
/* $NetBSD: netbsd32_sysctl.c,v 1.15 2004/04/27 03:49:03 atatat Exp $ */
/*
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysctl.c,v 1.14 2004/03/24 15:34:52 atatat Exp $");
__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysctl.c,v 1.15 2004/04/27 03:49:03 atatat Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ddb.h"
@ -65,8 +65,8 @@ __KERNEL_RCSID(0, "$NetBSD: netbsd32_sysctl.c,v 1.14 2004/03/24 15:34:52 atatat
struct sysctlnode netbsd32_sysctl_root = {
.sysctl_flags = SYSCTL_VERSION|CTLFLAG_ROOT|CTLTYPE_NODE,
.sysctl_num = 0,
.sysctl_size = sizeof(struct sysctlnode),
.sysctl_name = "(netbsd32_root)",
sysc_init_field(_sysctl_size, sizeof(struct sysctlnode)),
};
/*