+2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
+
+ * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
+ (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
+ Pass 0 as `end' parameter to grub_strtoul().
+
2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
* include/grub/powerpc/ieee1275/console.h: Do not include
#include <grub/term.h>
#include <grub/types.h>
#include <grub/misc.h>
+#include <grub/mm.h>
#include <grub/machine/console.h>
#include <grub/ieee1275/ieee1275.h>
if (!w || !h)
{
if (! grub_ieee1275_finddevice ("/options", &options)
- && options != -1)
+ && options != (grub_ieee1275_ihandle_t) -1)
{
if (! grub_ieee1275_get_property_length (options, "screen-#columns",
&lval) && lval != -1)
{
if (! grub_ieee1275_get_property (options, "screen-#columns",
val, lval, 0))
- w = (grub_uint8_t) grub_strtoul (val, val + lval, 10);
+ w = (grub_uint8_t) grub_strtoul (val, 0, 10);
grub_free (val);
}
{
if (! grub_ieee1275_get_property (options, "screen-#rows",
val, lval, 0))
- h = (grub_uint8_t) grub_strtoul (val, val + lval, 10);
+ h = (grub_uint8_t) grub_strtoul (val, 0, 10);
grub_free (val);
}