summaryrefslogtreecommitdiff
path: root/sys/compat/linux
diff options
context:
space:
mode:
authormartin <martin@NetBSD.org>2014-05-16 12:22:32 +0000
committermartin <martin@NetBSD.org>2014-05-16 12:22:32 +0000
commit59f51ab1e16002ba818d2f20abd112fc5dfd2e25 (patch)
tree082f5a0f6e398f37a8bbc21725ee5fa1bd721c3a /sys/compat/linux
parentc76dd3e91dc03275004b0b05db21c0241c48d17d (diff)
Get rid of all sysc_init_field uses - initialize fields directly in C99
notation.
Diffstat (limited to 'sys/compat/linux')
-rw-r--r--sys/compat/linux/common/linux_sysctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/linux/common/linux_sysctl.c b/sys/compat/linux/common/linux_sysctl.c
index c74144f4516..bf28be35f2a 100644
--- a/sys/compat/linux/common/linux_sysctl.c
+++ b/sys/compat/linux/common/linux_sysctl.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_sysctl.c,v 1.42 2014/02/25 18:30:09 pooka Exp $ */
+/* $NetBSD: linux_sysctl.c,v 1.43 2014/05/16 12:22:32 martin Exp $ */
/*-
* Copyright (c) 2003, 2008 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_sysctl.c,v 1.42 2014/02/25 18:30:09 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_sysctl.c,v 1.43 2014/05/16 12:22:32 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -65,7 +65,7 @@ struct sysctlnode linux_sysctl_root = {
CTLFLAG_ROOT|CTLTYPE_NODE|CTLFLAG_READWRITE,
.sysctl_num = 0,
.sysctl_name = "(linux_root)",
- sysc_init_field(_sysctl_size, sizeof(struct sysctlnode)),
+ .sysctl_size = sizeof(struct sysctlnode),
};
static struct sysctllog *linux_clog1;