From 0b3ced28d7e015675855cfbb6440bf255287b58b Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 14 Feb 2004 20:03:36 +0000 Subject: Use standard style for cdevsw initialization. --- sys/kern/tty_cons.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/kern') 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, }; -- cgit v1.1