diff options
author | bde <bde@FreeBSD.org> | 1996-09-14 04:27:46 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-09-14 04:27:46 +0000 |
commit | c51d5ab188ee1b1b6a52b4aa8baaf269ce01451b (patch) | |
tree | b3213d6fc0cfefdd1d4313c9f142b7d0eaae3b30 /sys/dev/sio/sio.c | |
parent | 1abf7809ff779cc419e502cc2ef28cbdc13ff57f (diff) | |
download | FreeBSD-src-c51d5ab188ee1b1b6a52b4aa8baaf269ce01451b.zip FreeBSD-src-c51d5ab188ee1b1b6a52b4aa8baaf269ce01451b.tar.gz |
Changed cncheckc() interface so that it is 8-bit clean - return -1
instead of 0 if there is no input.
syscons.c:
Added missing spl locking in sccncheckc(). Return the same value as
sccngetc() would. It is wrong for sccngetc() to return non-ASCII, but
stripping the non-ASCII bits doesn't help.
Diffstat (limited to 'sys/dev/sio/sio.c')
-rw-r--r-- | sys/dev/sio/sio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index 2aa4dfc..8976cae 100644 --- a/sys/dev/sio/sio.c +++ b/sys/dev/sio/sio.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)com.c 7.5 (Berkeley) 5/16/91 - * $Id: sio.c,v 1.144 1996/07/17 22:07:23 julian Exp $ + * $Id: sio.c,v 1.145 1996/09/06 23:08:05 phk Exp $ */ #include "opt_comconsole.h" @@ -2415,7 +2415,7 @@ siocncheckc(dev) if (inb(iobase + com_lsr) & LSR_RXRDY) c = inb(iobase + com_data); else - c = 0; + c = -1; siocnclose(&sp); splx(s); return (c); |