mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-26 16:18:31 +00:00
Move t_timeout initializing to ttyregister
Pointed-by: bde
This commit is contained in:
parent
3627ad6c00
commit
051f60b976
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=59822
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user