mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Use ttyalloc() instead of ttymalloc()
This commit is contained in:
parent
8607f52b66
commit
8a7f77816e
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue