summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty_compat.c
diff options
context:
space:
mode:
authorcognet <cognet@FreeBSD.org>2004-05-07 15:35:38 +0000
committercognet <cognet@FreeBSD.org>2004-05-07 15:35:38 +0000
commit6897229d6349c2e5a27f41ca3ab1a24b02aff0fe (patch)
tree539602dc23a481593a66b074a3e2b3cbcae5ffe3 /sys/kern/tty_compat.c
parent60a433f4c8acdf24bf6f5cb354b72b52db72e6db (diff)
downloadFreeBSD-src-6897229d6349c2e5a27f41ca3ab1a24b02aff0fe.zip
FreeBSD-src-6897229d6349c2e5a27f41ca3ab1a24b02aff0fe.tar.gz
Compare t_brkc against (char)_POSIX_VDISABLE, not against -1.
Discussed with: bde
Diffstat (limited to 'sys/kern/tty_compat.c')
-rw-r--r--sys/kern/tty_compat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/tty_compat.c b/sys/kern/tty_compat.c
index 83dabad..53db787 100644
--- a/sys/kern/tty_compat.c
+++ b/sys/kern/tty_compat.c
@@ -137,7 +137,7 @@ ttsetcompat(tp, com, data, term)
cc[VSTOP] = tc->t_stopc;
cc[VEOF] = tc->t_eofc;
cc[VEOL] = tc->t_brkc;
- if (tc->t_brkc == -1)
+ if (tc->t_brkc == (char)_POSIX_VDISABLE)
cc[VEOL2] = _POSIX_VDISABLE;
*com = TIOCSETA;
break;
OpenPOWER on IntegriCloud