warning fixes
This commit is contained in:
parent
141278b5e0
commit
9385e55bdd
1 changed files with 3 additions and 3 deletions
|
@ -75,8 +75,8 @@ PREFIX (boot) (void *relocator, grub_uint32_t dest,
|
||||||
overhead =
|
overhead =
|
||||||
ALIGN_UP (dest - RELOCATOR_SIZEOF (backward) - RELOCATOR_ALIGN,
|
ALIGN_UP (dest - RELOCATOR_SIZEOF (backward) - RELOCATOR_ALIGN,
|
||||||
RELOCATOR_ALIGN);
|
RELOCATOR_ALIGN);
|
||||||
write_call_relocator_bw (relocator - overhead,
|
write_call_relocator_bw ((char *) relocator - overhead,
|
||||||
relocator - overhead,
|
(char *) relocator - overhead,
|
||||||
dest - overhead, size + overhead, state);
|
dest - overhead, size + overhead, state);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -86,7 +86,7 @@ PREFIX (boot) (void *relocator, grub_uint32_t dest,
|
||||||
overhead = ALIGN_UP (dest + size, RELOCATOR_ALIGN)
|
overhead = ALIGN_UP (dest + size, RELOCATOR_ALIGN)
|
||||||
+ RELOCATOR_SIZEOF (forward) - (dest + size);
|
+ RELOCATOR_SIZEOF (forward) - (dest + size);
|
||||||
|
|
||||||
write_call_relocator_fw (relocator + size + overhead
|
write_call_relocator_fw ((char *) relocator + size + overhead
|
||||||
- RELOCATOR_SIZEOF (forward),
|
- RELOCATOR_SIZEOF (forward),
|
||||||
relocator, dest, size + overhead, state);
|
relocator, dest, size + overhead, state);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue