mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-24 08:09:22 +00:00
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:
1 parent
901d2f0c27
commit
238e871fff
29 files changed
+93
-86
No files matched your search
+2
-2
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user