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:
proski 2009-05-13 18:58:38 +00:00
parent 901d2f0c27
commit 238e871fff
29 changed files with 93 additions and 86 deletions

View file

@ -114,7 +114,7 @@ pc_partition_map_iterate (grub_disk_t disk,
struct grub_pc_partition_entry *e;
/* Read the MBR. */
if (grub_disk_read (&raw, p.offset, 0, sizeof (mbr), (char *) &mbr))
if (grub_disk_read (&raw, p.offset, 0, sizeof (mbr), &mbr))
goto finish;
/* Check if it is valid. */
@ -166,7 +166,7 @@ pc_partition_map_iterate (grub_disk_t disk,
+ GRUB_PC_PARTITION_BSD_LABEL_SECTOR),
0,
sizeof (label),
(char *) &label))
&label))
goto finish;
/* Check if it is valid. */