Remove data member in partition structure
This commit is contained in:
parent
35b86ff407
commit
58548abbc3
8 changed files with 13 additions and 25 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue