summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2002-02-23 04:33:15 +0000
committerjake <jake@FreeBSD.org>2002-02-23 04:33:15 +0000
commit8f643f6169940e6274da22f5fb678422ade2579d (patch)
tree6a616036c0eb4ef9dc4d256ac845e8606540f0cb
parente187f56a069640f11e555f8d94bf6ffa723620b5 (diff)
downloadFreeBSD-src-8f643f6169940e6274da22f5fb678422ade2579d.zip
FreeBSD-src-8f643f6169940e6274da22f5fb678422ade2579d.tar.gz
Fix test for != 0 that should be > 0.
-rw-r--r--sys/boot/ofw/libofw/ofw_console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/ofw/libofw/ofw_console.c b/sys/boot/ofw/libofw/ofw_console.c
index 3fa2497..77d9ad5 100644
--- a/sys/boot/ofw/libofw/ofw_console.c
+++ b/sys/boot/ofw/libofw/ofw_console.c
@@ -115,7 +115,7 @@ ofw_cons_poll()
if (saved_char != -1)
return 1;
- if (OF_read(stdin, &ch, 1) != 0) {
+ if (OF_read(stdin, &ch, 1) > 0) {
saved_char = ch;
return 1;
}
OpenPOWER on IntegriCloud