2008-07-01 Pavel Roskin <proski@gnu.org>

* loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
	cast to suppress a warning.
This commit is contained in:
proski 2008-07-02 00:37:48 +00:00
parent 29d7e38ad8
commit b8789f6c20
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2008-07-01 Pavel Roskin <proski@gnu.org> 2008-07-01 Pavel Roskin <proski@gnu.org>
* loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
cast to suppress a warning.
* fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
grub_fshelp_read_file() expects. grub_fshelp_read_file() expects.

View file

@ -55,7 +55,7 @@ grub_mb2_arch_module_alloc (grub_size_t size, grub_addr_t *addr)
{ {
grub_addr_t modaddr; grub_addr_t modaddr;
modaddr = grub_memalign (MULTIBOOT2_MOD_ALIGN, size); modaddr = (grub_addr_t) grub_memalign (MULTIBOOT2_MOD_ALIGN, size);
if (! modaddr) if (! modaddr)
return grub_errno; return grub_errno;