summaryrefslogtreecommitdiffstats
path: root/sys/scsi/sd.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1996-09-14 04:31:09 +0000
committerbde <bde@FreeBSD.org>1996-09-14 04:31:09 +0000
commite0185c45da38614044b4599ba3d9c8b8b8d96eb1 (patch)
treeab9bfa668bda5a38c73d4a115a085e4cae5ed3ce /sys/scsi/sd.c
parent68592e6b3e3f796cb4fe5f64e73bd8886a8872a3 (diff)
downloadFreeBSD-src-e0185c45da38614044b4599ba3d9c8b8b8d96eb1.zip
FreeBSD-src-e0185c45da38614044b4599ba3d9c8b8b8d96eb1.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/scsi/sd.c')
-rw-r--r--sys/scsi/sd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c
index 822b589..8ef2c6e 100644
--- a/sys/scsi/sd.c
+++ b/sys/scsi/sd.c
@@ -14,7 +14,7 @@
*
* Ported to run under 386BSD by Julian Elischer (julian@dialix.oz.au) Sept 1992
*
- * $Id: sd.c,v 1.93 1996/09/03 10:24:29 asami Exp $
+ * $Id: sd.c,v 1.94 1996/09/06 23:09:18 phk Exp $
*/
#include "opt_bounce.h"
@@ -921,7 +921,7 @@ sddump(dev_t dev)
addr = (char *) 0; /* starting address */
/* toss any characters present prior to dump */
- while (cncheckc())
+ while (cncheckc() != -1)
;
/* size of memory to dump */
@@ -1020,7 +1020,7 @@ sddump(dev_t dev)
(int) addr += SECSIZE * blkcnt;
/* operator aborting dump? */
- if (cncheckc())
+ if (cncheckc() != -1)
return (EINTR);
}
return (0);
OpenPOWER on IntegriCloud