artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9276b24
)
Apple's firmware returns 0 from OF_read(stdin,)
author
briggs
<briggs@openbsd.org>
Thu, 17 Apr 1997 02:27:36 +0000
(
02:27
+0000)
committer
briggs
<briggs@openbsd.org>
Thu, 17 Apr 1997 02:27:36 +0000
(
02:27
+0000)
if no characters are available. Deal with it.
sys/arch/powerpc/stand/Locore.c
patch
|
blob
|
history
diff --git
a/sys/arch/powerpc/stand/Locore.c
b/sys/arch/powerpc/stand/Locore.c
index
239ddf2
..
b50db4c
100644
(file)
--- 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 rahnd
s Exp $ */
+/* $OpenBSD: Locore.c,v 1.
5 1997/04/17 02:27:36 brigg
s 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;
}