2005-11-03 Hollis Blanchard <hollis@penguinppc.org>

* kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
	to 0.
	* term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
	there are no pending characters.
This commit is contained in:
hollisb 2005-11-04 04:50:14 +00:00
parent e45deb9e1e
commit 77500b2bf0
3 changed files with 10 additions and 4 deletions

View file

@ -1,3 +1,10 @@
2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
* kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
to 0.
* term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
there are no pending characters.
2005-11-03 Hollis Blanchard <hollis@penguinppc.org> 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
* kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use

View file

@ -186,10 +186,9 @@ grub_stop (void)
grub_uint32_t grub_uint32_t
grub_get_rtc (void) grub_get_rtc (void)
{ {
grub_uint32_t msecs; grub_uint32_t msecs = 0;
if (grub_ieee1275_milliseconds (&msecs)) grub_ieee1275_milliseconds (&msecs);
return 0;
return msecs; return msecs;
} }

View file

@ -189,7 +189,7 @@ grub_ofconsole_checkkey (void)
return 1; return 1;
} }
return 0; return -1;
} }
static int static int