summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2006-01-04 09:09:46 +0000
committerphk <phk@FreeBSD.org>2006-01-04 09:09:46 +0000
commit3bbf36cf3fda5845b74e12336324e3a46ed9c9a0 (patch)
tree1974bb9cb9d5e25e90c3c8f7395f414372b0035f /sys
parent527a24856dcb4abb467ef6dfb88974b9f13d39f4 (diff)
downloadFreeBSD-src-3bbf36cf3fda5845b74e12336324e3a46ed9c9a0.zip
FreeBSD-src-3bbf36cf3fda5845b74e12336324e3a46ed9c9a0.tar.gz
Use ttyalloc() instead of ttymalloc()
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/tty_pty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c
index d386601..e4487ef 100644
--- a/sys/kern/tty_pty.c
+++ b/sys/kern/tty_pty.c
@@ -150,7 +150,7 @@ ptyinit(struct cdev *devc, struct thread *td)
UID_ROOT, GID_WHEEL, 0666, "tty%c%r", names[n / 32], n % 32);
pt->devc = devc;
- pt->pt_tty = ttymalloc(pt->pt_tty);
+ pt->pt_tty = ttyalloc();
pt->pt_tty->t_sc = pt;
devs->si_drv1 = devc->si_drv1 = pt;
devs->si_tty = devc->si_tty = pt->pt_tty;
OpenPOWER on IntegriCloud