diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-09-28 11:45:31 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-09-28 11:45:31 +0000 |
| commit | 1ab305ef608dc3a8a8bc426b615e6b81bd7f5a05 (patch) | |
| tree | 78e614a9d8df297bbfd1f6032918394d497d7e7e /sys/dev/syscons/syscons.c | |
| parent | 340b1ef5450ecb74273a36b438c177af7f1d40b0 (diff) | |
Notes
Diffstat (limited to 'sys/dev/syscons/syscons.c')
| -rw-r--r-- | sys/dev/syscons/syscons.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index 4cff39f0f3bf..552aacda647f 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -205,7 +205,6 @@ CONS_DRIVER(sc, sccnprobe, sccninit, sccnterm, sccngetc, sccncheckc, sccnputc); static d_open_t scopen; static d_close_t scclose; static d_read_t scread; -static d_write_t scwrite; static d_ioctl_t scioctl; static d_mmap_t scmmap; @@ -213,7 +212,7 @@ static struct cdevsw sc_cdevsw = { /* open */ scopen, /* close */ scclose, /* read */ scread, - /* write */ scwrite, + /* write */ ttywrite, /* ioctl */ scioctl, /* poll */ ttypoll, /* mmap */ scmmap, @@ -579,18 +578,9 @@ scclose(dev_t dev, int flag, int mode, struct proc *p) int scread(dev_t dev, struct uio *uio, int flag) { - struct tty *tp = dev->si_tty; sc_touch_scrn_saver(); - return((*linesw[tp->t_line].l_read)(tp, uio, flag)); -} - -int -scwrite(dev_t dev, struct uio *uio, int flag) -{ - struct tty *tp = dev->si_tty; - - return((*linesw[tp->t_line].l_write)(tp, uio, flag)); + return(ttyread(dev, uio, flag)); } static int |
