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:
parent
e45deb9e1e
commit
77500b2bf0
3 changed files with 10 additions and 4 deletions
|
@ -186,10 +186,9 @@ grub_stop (void)
|
|||
grub_uint32_t
|
||||
grub_get_rtc (void)
|
||||
{
|
||||
grub_uint32_t msecs;
|
||||
grub_uint32_t msecs = 0;
|
||||
|
||||
if (grub_ieee1275_milliseconds (&msecs))
|
||||
return 0;
|
||||
grub_ieee1275_milliseconds (&msecs);
|
||||
|
||||
return msecs;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue