diff options
author | phk <phk@FreeBSD.org> | 2004-02-14 20:03:36 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-02-14 20:03:36 +0000 |
commit | 0b3ced28d7e015675855cfbb6440bf255287b58b (patch) | |
tree | 101d351a2b11a63c36eee8975e52e858652dc5c8 /sys/kern | |
parent | 62ecc1aa59ee9a6e864d3002674570c3e4819f21 (diff) | |
download | FreeBSD-src-0b3ced28d7e015675855cfbb6440bf255287b58b.zip FreeBSD-src-0b3ced28d7e015675855cfbb6440bf255287b58b.tar.gz |
Use standard style for cdevsw initialization.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/tty_cons.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/tty_cons.c b/sys/kern/tty_cons.c index 835c35a..272cc4a 100644 --- a/sys/kern/tty_cons.c +++ b/sys/kern/tty_cons.c @@ -72,6 +72,11 @@ static d_ioctl_t cnioctl; static d_poll_t cnpoll; static d_kqfilter_t cnkqfilter; +/* + * XXX: We really want major #0, but zero here means + * XXX: allocate a major number automatically. + * XXX: kern_conf.c knows what to do when it sees 256. + */ static struct cdevsw cn_cdevsw = { .d_open = cnopen, .d_close = cnclose, @@ -81,11 +86,6 @@ static struct cdevsw cn_cdevsw = { .d_poll = cnpoll, .d_name = "console", .d_maj = 256, - /* - * XXX: We really want major #0, but zero here means - * XXX: allocate a major number automatically. - * XXX: kern_conf.c knows what to do when it sees 256. - */ .d_flags = D_TTY, .d_kqfilter = cnkqfilter, }; |