summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2000-05-01 10:51:54 +0000
committerache <ache@FreeBSD.org>2000-05-01 10:51:54 +0000
commit6de8b3ee73940b2f141f54e60104a61350c687a7 (patch)
tree895a5494106be217047cc6afc61477bf58d9a5d2 /sys/kern/tty.c
parent2af5c3f860f0e436104d71d7068943c18c1e720c (diff)
downloadFreeBSD-src-6de8b3ee73940b2f141f54e60104a61350c687a7.zip
FreeBSD-src-6de8b3ee73940b2f141f54e60104a61350c687a7.tar.gz
Move t_timeout initializing to ttyregister
Pointed-by: bde
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r--sys/kern/tty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index 2670c9e..d69ae83 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -2403,7 +2403,6 @@ ttymalloc(tp)
return(tp);
tp = malloc(sizeof *tp, M_TTYS, M_WAITOK);
bzero(tp, sizeof *tp);
- tp->t_timeout = -1;
ttyregister(tp);
return (tp);
}
@@ -2425,6 +2424,7 @@ void
ttyregister(tp)
struct tty *tp;
{
+ tp->t_timeout = -1;
SLIST_INSERT_HEAD(&tty_list, tp, t_list);
}
OpenPOWER on IntegriCloud