diff options
author | phk <phk@FreeBSD.org> | 2006-01-04 09:20:41 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2006-01-04 09:20:41 +0000 |
commit | 990533856ec969bb87b18b54c27c93aa376a6017 (patch) | |
tree | ce80dad42790732bcdc32cbf9e3020a6b31f21ec /sys/dev/dcons/dcons_os.c | |
parent | 3bbf36cf3fda5845b74e12336324e3a46ed9c9a0 (diff) | |
download | FreeBSD-src-990533856ec969bb87b18b54c27c93aa376a6017.zip FreeBSD-src-990533856ec969bb87b18b54c27c93aa376a6017.tar.gz |
Use ttyalloc() instead of ttymalloc()
Diffstat (limited to 'sys/dev/dcons/dcons_os.c')
-rw-r--r-- | sys/dev/dcons/dcons_os.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/dcons/dcons_os.c b/sys/dev/dcons/dcons_os.c index 40273a3..97f9668 100644 --- a/sys/dev/dcons/dcons_os.c +++ b/sys/dev/dcons/dcons_os.c @@ -283,7 +283,7 @@ dcons_open(DEV dev, int flag, int mode, THREAD *td) if (unit != 0) return (ENXIO); - tp = dev->si_tty = ttymalloc(dev->si_tty); + tp = dev->si_tty; tp->t_oproc = dcons_tty_start; tp->t_param = dcons_tty_param; tp->t_stop = nottystop; @@ -584,7 +584,7 @@ dcons_attach_port(int port, char *name, int flags) dev = make_dev(&dcons_cdevsw, port, UID_ROOT, GID_WHEEL, 0600, name); dc->dev = (void *)dev; - tp = ttymalloc(NULL); + tp = ttyalloc(); dev->si_drv1 = (void *)dc; dev->si_tty = tp; |