mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-23 07:39: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
@@ -389,7 +389,7 @@ grub_hfsplus_mount (grub_disk_t disk)
|
||||
|
||||
/* Read the bootblock. */
|
||||
grub_disk_read (disk, GRUB_HFSPLUS_SBLOCK, 0, sizeof (volheader),
|
||||
(char *) &volheader);
|
||||
&volheader);
|
||||
if (grub_errno)
|
||||
goto fail;
|
||||
|
||||
@@ -416,7 +416,7 @@ grub_hfsplus_mount (grub_disk_t disk)
|
||||
* (ablk_size >> GRUB_DISK_SECTOR_BITS));
|
||||
|
||||
grub_disk_read (disk, data->embedded_offset + GRUB_HFSPLUS_SBLOCK, 0,
|
||||
sizeof (volheader), (char *) &volheader);
|
||||
sizeof (volheader), &volheader);
|
||||
if (grub_errno)
|
||||
goto fail;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user