diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-06-04 07:17:03 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-06-04 07:17:03 +0000 |
| commit | d1afdc6644ad956e9bbfd4e679bf09dc5461bbcd (patch) | |
| tree | de52fd7715367313bf7b48997e6cb33c1dfea850 | |
| parent | 9130089b9da8f09a05b4b2e638525a685f28e043 (diff) | |
Notes
| -rw-r--r-- | sys/kern/tty.c | 10 | ||||
| -rw-r--r-- | sys/sys/tty.h | 1 |
2 files changed, 2 insertions, 9 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index 86581649b4c6..a49583e24a46 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -2641,7 +2641,8 @@ ttymalloc(struct tty *tp) if (tp) return(tp); tp = malloc(sizeof *tp, M_TTYS, M_WAITOK | M_ZERO); - ttyregister(tp); + tp->t_timeout = -1; + SLIST_INSERT_HEAD(&tty_list, tp, t_list); return (tp); } @@ -2657,13 +2658,6 @@ ttyfree(struct tty *tp) } #endif /* 0 */ -void -ttyregister(struct tty *tp) -{ - tp->t_timeout = -1; - SLIST_INSERT_HEAD(&tty_list, tp, t_list); -} - static int sysctl_kern_ttys(SYSCTL_HANDLER_ARGS) { diff --git a/sys/sys/tty.h b/sys/sys/tty.h index f5330b9768b8..5565456510b4 100644 --- a/sys/sys/tty.h +++ b/sys/sys/tty.h @@ -306,7 +306,6 @@ int ttylclose(struct tty *tp, int flag); struct tty *ttymalloc(struct tty *tp); int ttymodem(struct tty *tp, int flag); int ttyopen(dev_t device, struct tty *tp); -void ttyregister(struct tty *tp); int ttysleep(struct tty *tp, void *chan, int pri, char *wmesg, int timo); int ttywait(struct tty *tp); int unputc(struct clist *q); |
