Be consistent about using sysc_init_field()
This commit is contained in:
parent
423f25048b
commit
e5004170aa
@ -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)),
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -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)),
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user