diff options
author | cognet <cognet@FreeBSD.org> | 2004-05-07 15:35:38 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2004-05-07 15:35:38 +0000 |
commit | 6897229d6349c2e5a27f41ca3ab1a24b02aff0fe (patch) | |
tree | 539602dc23a481593a66b074a3e2b3cbcae5ffe3 /sys/kern/tty_compat.c | |
parent | 60a433f4c8acdf24bf6f5cb354b72b52db72e6db (diff) | |
download | FreeBSD-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.c | 2 |
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; |