diff options
author | briggs <briggs@cvs.openbsd.org> | 1997-04-17 02:27:37 +0000 |
---|---|---|
committer | briggs <briggs@cvs.openbsd.org> | 1997-04-17 02:27:37 +0000 |
commit | 97987029292f8c61ef09b7d10f0d8d9f1b3fa820 (patch) | |
tree | f8cd0cbe7eec2837540d83028b6044400652f8a8 /sys/arch/powerpc | |
parent | 64363260479d6fea25ac95d1a6107c4a84fee4a0 (diff) |
Apple's firmware returns 0 from OF_read(stdin,)
if no characters are available. Deal with it.
Diffstat (limited to 'sys/arch/powerpc')
-rw-r--r-- | sys/arch/powerpc/stand/Locore.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/powerpc/stand/Locore.c b/sys/arch/powerpc/stand/Locore.c index 239ddf23926..b50db4c1d92 100644 --- a/sys/arch/powerpc/stand/Locore.c +++ b/sys/arch/powerpc/stand/Locore.c @@ -1,4 +1,4 @@ -/* $OpenBSD: Locore.c,v 1.4 1997/02/18 22:36:40 rahnds Exp $ */ +/* $OpenBSD: Locore.c,v 1.5 1997/04/17 02:27:36 briggs Exp $ */ /* $NetBSD: Locore.c,v 1.1 1996/09/30 16:34:58 ws Exp $ */ /* @@ -471,7 +471,7 @@ getchar() int l; while ((l = OF_read(stdin, &ch, 1)) != 1) - if (l != -2) + if (l != -2 && l != 0) return -1; return ch; } |