2009-05-13 Pavel Roskin <proski@gnu.org>
* kernel/disk.c (grub_disk_read): Use void pointer for the buffer. (grub_disk_write): Use const void pointer for the buffer. Adjust all callers. Remove unnecessary casts.
This commit is contained in:
parent
901d2f0c27
commit
238e871fff
29 changed files with 93 additions and 86 deletions
|
@ -61,7 +61,7 @@ acorn_partition_map_find (grub_disk_t disk, struct linux_part *m,
|
|||
|
||||
err = grub_disk_read (disk, 0xC00 / GRUB_DISK_SECTOR_SIZE, 0,
|
||||
sizeof (struct grub_acorn_boot_block),
|
||||
(char *) &boot);
|
||||
&boot);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
|
@ -81,7 +81,7 @@ acorn_partition_map_find (grub_disk_t disk, struct linux_part *m,
|
|||
|
||||
return grub_disk_read (disk, *sector, 0,
|
||||
sizeof (struct linux_part) * LINUX_MAP_ENTRIES,
|
||||
(char *) m);
|
||||
m);
|
||||
|
||||
fail:
|
||||
return grub_error (GRUB_ERR_BAD_PART_TABLE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue