diff options
author | bde <bde@FreeBSD.org> | 1996-09-14 04:25:32 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-09-14 04:25:32 +0000 |
commit | 1abf7809ff779cc419e502cc2ef28cbdc13ff57f (patch) | |
tree | 95a434912321c0998dc16d0b9c0ce2af538b48e1 /sys/kern/tty_cons.c | |
parent | 6ed5ccfb8ff780ada625c4ebc1c40ad5d6395e84 (diff) | |
download | FreeBSD-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/kern/tty_cons.c')
-rw-r--r-- | sys/kern/tty_cons.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/tty_cons.c b/sys/kern/tty_cons.c index 2c4ea50..3b25fc8 100644 --- a/sys/kern/tty_cons.c +++ b/sys/kern/tty_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)); } |