diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2005-10-16 20:22:56 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2005-10-16 20:22:56 +0000 |
| commit | 733634738ed6c3de9cd7937fdecdcaaa5555b03f (patch) | |
| tree | 136df2f5eb3978a913bbef50def66e4c0eb9606d /sys/kern/tty.c | |
| parent | a9c76d92d2f1973701e47abbb31b9c53d10a0efd (diff) | |
Notes
Diffstat (limited to 'sys/kern/tty.c')
| -rw-r--r-- | sys/kern/tty.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index 62634321a723..62e3028edf43 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -2900,9 +2900,11 @@ ttypurge(struct cdev *dev) */ int -ttycreate(struct tty *tp, struct cdevsw *csw, int unit, int flags, const char *fmt, ...) +ttycreate(struct tty *tp, int flags, const char *fmt, ...) { char namebuf[SPECNAMELEN - 3]; /* XXX space for "tty" */ + struct cdevsw *csw = NULL; + int unit = 0; va_list ap; struct cdev *cp; int i, minor, sminor, sunit; @@ -2952,7 +2954,7 @@ ttycreate(struct tty *tp, struct cdevsw *csw, int unit, int flags, const char *f cp->si_drv2 = &tp->t_lock_in; cp->si_tty = tp; - if (flags & MINOR_CALLOUT) { + if (flags & TS_CALLOUT) { cp = make_dev(csw, minor | MINOR_CALLOUT, UID_UUCP, GID_DIALER, 0660, "cua%s", namebuf); dev_depends(tp->t_dev, cp); |
