aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2006-01-04 09:20:41 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2006-01-04 09:20:41 +0000
commit8a7f77816edab08fd455b02a045af3c95de95fb9 (patch)
treece80dad42790732bcdc32cbf9e3020a6b31f21ec /sys
parent8607f52b664b541dc290f3e3e27d9b149a05fd79 (diff)
downloadsrc-8a7f77816edab08fd455b02a045af3c95de95fb9.tar.gz
src-8a7f77816edab08fd455b02a045af3c95de95fb9.zip
Use ttyalloc() instead of ttymalloc()
Notes
Notes: svn path=/head/; revision=154016
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/dcons/dcons_os.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/dcons/dcons_os.c b/sys/dev/dcons/dcons_os.c
index 40273a39fdba..97f9668d190d 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;