aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJake Burkholder <jake@FreeBSD.org>2002-02-23 04:33:15 +0000
committerJake Burkholder <jake@FreeBSD.org>2002-02-23 04:33:15 +0000
commit23b93fc323d03e6f7d96c92f072823c74dd1519c (patch)
tree6a616036c0eb4ef9dc4d256ac845e8606540f0cb
parentc2ef11f24432e9f38ec96fe23dd56fb5c65feb8d (diff)
Notes
-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 3fa249754674..77d9ad590f5e 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;
}