mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-25 00:29:23 +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
@@ -84,7 +84,7 @@ grub_cpio_find_file (struct grub_cpio_data *data, char **name,
|
||||
struct HEAD_BCPIO hd;
|
||||
|
||||
if (grub_disk_read
|
||||
(data->disk, 0, data->hofs, sizeof (hd), (char *) &hd))
|
||||
(data->disk, 0, data->hofs, sizeof (hd), &hd))
|
||||
return grub_errno;
|
||||
|
||||
if (hd.magic != MAGIC_BCPIO)
|
||||
@@ -120,7 +120,7 @@ grub_cpio_find_file (struct grub_cpio_data *data, char **name,
|
||||
struct HEAD_USTAR hd;
|
||||
|
||||
if (grub_disk_read
|
||||
(data->disk, 0, data->hofs, sizeof (hd), (char *) &hd))
|
||||
(data->disk, 0, data->hofs, sizeof (hd), &hd))
|
||||
return grub_errno;
|
||||
|
||||
if (!hd.name[0])
|
||||
|
||||
Reference in new issue
Block a user