diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-03-03 12:15:54 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-03-03 12:15:54 +0000 |
| commit | 7ac40f5f59dea6e9ab4869e974bdd4026274e921 (patch) | |
| tree | 4e91d5779ffebe1d75e975aa4450f35f965430eb /sys/kern/tty_tty.c | |
| parent | 03f5c0014428be25ffe752865c2a06b1c2cd9347 (diff) | |
Notes
Diffstat (limited to 'sys/kern/tty_tty.c')
| -rw-r--r-- | sys/kern/tty_tty.c | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/sys/kern/tty_tty.c b/sys/kern/tty_tty.c index 52fc4dbfdfc4..cdeaa41a0fd5 100644 --- a/sys/kern/tty_tty.c +++ b/sys/kern/tty_tty.c @@ -37,19 +37,11 @@ static d_open_t cttyopen; #define CDEV_MAJOR 1 static struct cdevsw ctty_cdevsw = { - /* open */ cttyopen, - /* close */ nullclose, - /* read */ noread, - /* write */ nowrite, - /* ioctl */ noioctl, - /* poll */ nopoll, - /* mmap */ nommap, - /* strategy */ nostrategy, - /* name */ "ctty", - /* maj */ CDEV_MAJOR, - /* dump */ nodump, - /* psize */ nopsize, - /* flags */ D_TTY, + .d_open = cttyopen, + .d_close = nullclose, + .d_name = "ctty", + .d_maj = CDEV_MAJOR, + .d_flags = D_TTY, }; static dev_t ctty; |
