summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/pcvt/pcvt_drv.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1996-09-14 04:30:32 +0000
committerbde <bde@FreeBSD.org>1996-09-14 04:30:32 +0000
commit68592e6b3e3f796cb4fe5f64e73bd8886a8872a3 (patch)
treec5f5f425701976398ebec27319ee24b78b2be815 /sys/i386/isa/pcvt/pcvt_drv.c
parentc51d5ab188ee1b1b6a52b4aa8baaf269ce01451b (diff)
downloadFreeBSD-src-68592e6b3e3f796cb4fe5f64e73bd8886a8872a3.zip
FreeBSD-src-68592e6b3e3f796cb4fe5f64e73bd8886a8872a3.tar.gz
Changed cncheckc() interface so that it is 8-bit clean - return -1
instead of 0 if there is no input. pcvt_drv.c: Partially fixed pccncheckc(). It returned a boolean value instead of the character that it fetches from the input fifo (if any). I think it still discards characters after the first for multi-char input.
Diffstat (limited to 'sys/i386/isa/pcvt/pcvt_drv.c')
-rw-r--r--sys/i386/isa/pcvt/pcvt_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/isa/pcvt/pcvt_drv.c b/sys/i386/isa/pcvt/pcvt_drv.c
index 10e14b7..5ff22b7 100644
--- a/sys/i386/isa/pcvt/pcvt_drv.c
+++ b/sys/i386/isa/pcvt/pcvt_drv.c
@@ -1204,7 +1204,7 @@ pccncheckc(Dev_t dev)
cp = sgetc(1);
kbd_polling = 0;
splx(x);
- return (cp != 0); /* did someone press the "Any" key? */
+ return (cp == NULL ? -1 : *cp);
}
#endif /* PCVT_FREEBSD >= 200 */
OpenPOWER on IntegriCloud