summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1996-09-14 04:25:32 +0000
committerbde <bde@FreeBSD.org>1996-09-14 04:25:32 +0000
commit1abf7809ff779cc419e502cc2ef28cbdc13ff57f (patch)
tree95a434912321c0998dc16d0b9c0ce2af538b48e1 /sys/i386
parent6ed5ccfb8ff780ada625c4ebc1c40ad5d6395e84 (diff)
downloadFreeBSD-src-1abf7809ff779cc419e502cc2ef28cbdc13ff57f.zip
FreeBSD-src-1abf7809ff779cc419e502cc2ef28cbdc13ff57f.tar.gz
Changed cncheckc() interface so that it is 8-bit clean - return -1
instead of 0 if there is no input.
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/i386/cons.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/i386/cons.c b/sys/i386/i386/cons.c
index 2c4ea50..3b25fc8 100644
--- a/sys/i386/i386/cons.c
+++ b/sys/i386/i386/cons.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* from: @(#)cons.c 7.2 (Berkeley) 5/9/91
- * $Id: cons.c,v 1.45 1996/03/28 15:03:41 bde Exp $
+ * $Id: cons.c,v 1.46 1996/05/01 03:32:46 bde Exp $
*/
#include <sys/param.h>
@@ -297,7 +297,7 @@ int
cncheckc()
{
if (cn_tab == NULL)
- return (0);
+ return (-1);
return ((*cn_tab->cn_checkc)(cn_tab->cn_dev));
}
OpenPOWER on IntegriCloud