Remove data member in partition structure

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-02-07 01:48:38 +01:00
parent 35b86ff407
commit 58548abbc3
8 changed files with 13 additions and 25 deletions

View file

@ -122,17 +122,16 @@ apple_partition_map_iterate (grub_disk_t disk,
goto fail;
}
part.data = 0;
pos = grub_be_to_cpu16 (aheader.blocksize);
do
{
part.offset = pos / GRUB_DISK_SECTOR_SIZE;
part.index = pos % GRUB_DISK_SECTOR_SIZE;
part.offset = pos / GRUB_DISK_SECTOR_SIZE;
part.index = pos % GRUB_DISK_SECTOR_SIZE;
if (grub_disk_read (disk, part.offset, part.index,
sizeof (struct grub_apple_part), &apart))
return grub_errno;
if (grub_disk_read (disk, part.offset, part.index,
sizeof (struct grub_apple_part), &apart))
return grub_errno;
if (grub_be_to_cpu16 (apart.magic) != GRUB_APPLE_PART_MAGIC)
{