summaryrefslogtreecommitdiff
path: root/sys/dev/sysmon/sysmon.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2014-03-16 05:20:22 +0000
committerdholland <dholland@NetBSD.org>2014-03-16 05:20:22 +0000
commit76258fa0fe68b72536361d37e7b733d8bb10b786 (patch)
treee8334d8baca3ac8a5d20fc7647d104a782381607 /sys/dev/sysmon/sysmon.c
parent1ccd73de606f245b810e292b6739d955a4f27d56 (diff)
Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers. I have not built every extant kernel so I have probably broken at least one build; however I've also found and fixed some wrong cdevsw/bdevsw entries so even if so I think we come out ahead.
Diffstat (limited to 'sys/dev/sysmon/sysmon.c')
-rw-r--r--sys/dev/sysmon/sysmon.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/sys/dev/sysmon/sysmon.c b/sys/dev/sysmon/sysmon.c
index 5556936dad6..539af4c1371 100644
--- a/sys/dev/sysmon/sysmon.c
+++ b/sys/dev/sysmon/sysmon.c
@@ -1,4 +1,4 @@
-/* $NetBSD: sysmon.c,v 1.17 2008/03/03 09:38:49 xtraeme Exp $ */
+/* $NetBSD: sysmon.c,v 1.18 2014/03/16 05:20:29 dholland Exp $ */
/*-
* Copyright (c) 2000 Zembu Labs, Inc.
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysmon.c,v 1.17 2008/03/03 09:38:49 xtraeme Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysmon.c,v 1.18 2014/03/16 05:20:29 dholland Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -61,8 +61,17 @@ dev_type_poll(sysmonpoll);
dev_type_kqfilter(sysmonkqfilter);
const struct cdevsw sysmon_cdevsw = {
- sysmonopen, sysmonclose, sysmonread, nowrite, sysmonioctl,
- nostop, notty, sysmonpoll, nommap, sysmonkqfilter, D_OTHER | D_MPSAFE,
+ .d_open = sysmonopen,
+ .d_close = sysmonclose,
+ .d_read = sysmonread,
+ .d_write = nowrite,
+ .d_ioctl = sysmonioctl,
+ .d_stop = nostop,
+ .d_tty = notty,
+ .d_poll = sysmonpoll,
+ .d_mmap = nommap,
+ .d_kqfilter = sysmonkqfilter,
+ .d_flag = D_OTHER | D_MPSAFE
};
/*