]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
warning fixes
authorphcoder <phcoder@debian.bg45.phnet>
Sat, 17 Oct 2009 22:24:17 +0000 (00:24 +0200)
committerphcoder <phcoder@debian.bg45.phnet>
Sat, 17 Oct 2009 22:24:17 +0000 (00:24 +0200)
lib/relocator.c

index 622adc51717dcb1e2c406656fb1f5e6a9f3e8465..e551f337f33d2ec5140205c58f360edb2cda49f4 100644 (file)
@@ -75,8 +75,8 @@ PREFIX (boot) (void *relocator, grub_uint32_t dest,
       overhead =
        ALIGN_UP (dest - RELOCATOR_SIZEOF (backward) - RELOCATOR_ALIGN,
                  RELOCATOR_ALIGN);
-      write_call_relocator_bw (relocator - overhead,
-                              relocator - overhead,
+      write_call_relocator_bw ((char *) relocator - overhead,
+                              (char *) relocator - overhead,
                               dest - overhead, size + overhead, state);
     }
   else
@@ -86,7 +86,7 @@ PREFIX (boot) (void *relocator, grub_uint32_t dest,
       overhead = ALIGN_UP (dest + size, RELOCATOR_ALIGN)
        + RELOCATOR_SIZEOF (forward) - (dest + size);
 
-      write_call_relocator_fw (relocator + size + overhead
+      write_call_relocator_fw ((char *) relocator + size + overhead
                               - RELOCATOR_SIZEOF (forward),
                               relocator, dest, size + overhead, state);
     }