From 8f643f6169940e6274da22f5fb678422ade2579d Mon Sep 17 00:00:00 2001 From: jake Date: Sat, 23 Feb 2002 04:33:15 +0000 Subject: [PATCH] Fix test for != 0 that should be > 0. --- sys/boot/ofw/libofw/ofw_console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }