diff -rupN powerpc/ieee1275/ofdisk.c sparc64/ieee1275/ofdisk.c --- powerpc/ieee1275/ofdisk.c 2005-05-01 05:45:35.000000000 +0200 +++ sparc64/ieee1275/ofdisk.c 2005-07-12 20:11:06.000000000 +0200 @@ -53,15 +53,14 @@ grub_ofdisk_open (const char *name, grub char *devpath; /* XXX: This should be large enough for any possible case. */ char prop[64]; - int actual; + grub_ssize_t actual; devpath = grub_strndup (name, grub_strlen (name) + 2); if (! devpath) return grub_errno; /* To access the complete disk add `:0'. */ - if (! grub_ieee1275_test_flag (GRUB_IEEE1275_FLAG_NO_PARTITION_0)) - grub_strcat (devpath, ":0"); + grub_strcat (devpath, ":0"); grub_ieee1275_open (devpath, &dev_ihandle); if (! dev_ihandle) @@ -119,8 +118,8 @@ static grub_err_t grub_ofdisk_read (grub_disk_t disk, unsigned long sector, unsigned long size, char *buf) { - int status; - int actual; + grub_ssize_t status; + grub_ssize_t actual; unsigned long long pos; pos = (unsigned long long) sector * 512UL;