]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2008-07-02 Pavel Roskin <proski@gnu.org>
authorproski <proski@localhost>
Wed, 2 Jul 2008 19:22:35 +0000 (19:22 +0000)
committerproski <proski@localhost>
Wed, 2 Jul 2008 19:22:35 +0000 (19:22 +0000)
* loader/aout.c (grub_aout_load): Cast load_addr to pointer
explicitly to fix a warning.

ChangeLog
loader/aout.c

index c5f1ffadc99e44657a2f196802b9049caf5eae3f..0de66f3c74ae97027ea35a2c7d759e45cf585e52 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2008-07-02  Pavel Roskin  <proski@gnu.org>
 
+       * loader/aout.c (grub_aout_load): Cast load_addr to pointer
+       explicitly to fix a warning.
+
        * util/grub-editenv.c (cmd_info): Fix warning in printf format.
 
        * Makefile.in (MODULE_LDFLAGS): New variable.
index 2677e50e48337ef3821fffe6f3e03218da2d54a7..58b3992043533839faadeedeb9d014cc16187181 100644 (file)
@@ -55,7 +55,7 @@ grub_aout_load (grub_file_t file, int offset,
     return grub_errno;
 
   if (bss_end_addr)
-    grub_memset (load_addr + load_size, 0,
+    grub_memset ((char *) load_addr + load_size, 0,
                  bss_end_addr - load_addr - load_size);
 
   return GRUB_ERR_NONE;