From c51d5ab188ee1b1b6a52b4aa8baaf269ce01451b Mon Sep 17 00:00:00 2001 From: bde Date: Sat, 14 Sep 1996 04:27:46 +0000 Subject: 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. --- sys/dev/sio/sio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/sio/sio.c') 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); -- cgit v1.1