summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2020-07-20 18:42:31 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2020-07-20 18:42:31 +0000
commite6511ff6827474f7567b50e107a187c0936ad1e6 (patch)
tree885dd0df3ddd3ba4a4621b0db3c5ccb4b43aa2cc
parent4aa64c88335dde688e35d025c79900214dec347e (diff)
cleanup ttrstrt; no functional change; ok dlg
-rw-r--r--sys/kern/tty.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index 33f6c4baf71..e747a4f3035 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.161 2020/07/20 14:34:16 deraadt Exp $ */
+/* $OpenBSD: tty.c,v 1.162 2020/07/20 18:42:30 deraadt Exp $ */
/* $NetBSD: tty.c,v 1.68.4.2 1996/06/06 16:04:52 thorpej Exp $ */
/*-
@@ -1334,21 +1334,18 @@ ttyblock(struct tty *tp)
}
void
-ttrstrt(void *tp_arg)
+ttrstrt(void *arg)
{
- struct tty *tp;
+ struct tty *tp = (struct tty *)arg;
int s;
#ifdef DIAGNOSTIC
- if (tp_arg == NULL)
+ if (tp == NULL)
panic("ttrstrt");
#endif
- tp = tp_arg;
s = spltty();
-
CLR(tp->t_state, TS_TIMEOUT);
ttstart(tp);
-
splx(s);
}