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
|
@ -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])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue