diff options
| author | dholland <dholland@NetBSD.org> | 2014-03-16 05:20:22 +0000 |
|---|---|---|
| committer | dholland <dholland@NetBSD.org> | 2014-03-16 05:20:22 +0000 |
| commit | 76258fa0fe68b72536361d37e7b733d8bb10b786 (patch) | |
| tree | e8334d8baca3ac8a5d20fc7647d104a782381607 /sys/dev/cons.c | |
| parent | 1ccd73de606f245b810e292b6739d955a4f27d56 (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/cons.c')
| -rw-r--r-- | sys/dev/cons.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/sys/dev/cons.c b/sys/dev/cons.c index a22de76abf4..649622cce3a 100644 --- a/sys/dev/cons.c +++ b/sys/dev/cons.c @@ -1,4 +1,4 @@ -/* $NetBSD: cons.c,v 1.70 2013/12/22 18:05:40 matt Exp $ */ +/* $NetBSD: cons.c,v 1.71 2014/03/16 05:20:26 dholland Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -39,7 +39,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: cons.c,v 1.70 2013/12/22 18:05:40 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: cons.c,v 1.71 2014/03/16 05:20:26 dholland Exp $"); #include <sys/param.h> #include <sys/proc.h> @@ -67,8 +67,17 @@ dev_type_kqfilter(cnkqfilter); static bool cn_redirect(dev_t *, int, int *); const struct cdevsw cons_cdevsw = { - cnopen, cnclose, cnread, cnwrite, cnioctl, - nostop, notty, cnpoll, nommap, cnkqfilter, D_TTY + .d_open = cnopen, + .d_close = cnclose, + .d_read = cnread, + .d_write = cnwrite, + .d_ioctl = cnioctl, + .d_stop = nostop, + .d_tty = notty, + .d_poll = cnpoll, + .d_mmap = nommap, + .d_kqfilter = cnkqfilter, + .d_flag = D_TTY }; struct tty *constty = NULL; /* virtual console output device */ |
