summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-06-26 09:20:07 +0000
committerphk <phk@FreeBSD.org>2004-06-26 09:20:07 +0000
commit0567d4ef5fa68876b3d70414d79e61c5cad5db3e (patch)
treec93b5edd593fd013f81731c196b7d1369e3d5f78 /sys/kern
parent21a36330b410b4bc4b67ebb64182227996dfb557 (diff)
downloadFreeBSD-src-0567d4ef5fa68876b3d70414d79e61c5cad5db3e.zip
FreeBSD-src-0567d4ef5fa68876b3d70414d79e61c5cad5db3e.tar.gz
Pick the hotchar out of the tty structure instead of caching private
copies. No current line disciplines have a dynamically changing hotchar, and expecting to receive anything sensible during a change in ldisc is insane so no locking of the hotchar field is necessary.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/tty.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index 5520b82..90d90cf 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -2899,7 +2899,7 @@ ttyioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thread *td
return (ENOTTY);
}
-int
+void
ttyldoptim(struct tty *tp)
{
struct termios *t;
@@ -2914,7 +2914,6 @@ ttyldoptim(struct tty *tp)
tp->t_state |= TS_CAN_BYPASS_L_RINT;
else
tp->t_state &= ~TS_CAN_BYPASS_L_RINT;
- return (tp->t_hotchar);
}
OpenPOWER on IntegriCloud