diff options
author | bde <bde@FreeBSD.org> | 1996-09-14 04:30:32 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-09-14 04:30:32 +0000 |
commit | 68592e6b3e3f796cb4fe5f64e73bd8886a8872a3 (patch) | |
tree | c5f5f425701976398ebec27319ee24b78b2be815 /sys/i386/isa/pcvt/pcvt_drv.c | |
parent | c51d5ab188ee1b1b6a52b4aa8baaf269ce01451b (diff) | |
download | FreeBSD-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.c | 2 |
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 */ |