* loader/i386/linux.c (allocate_pages): Fix a warning.

This commit is contained in:
robertmh 2008-11-20 20:22:04 +00:00
parent 73e8e268b7
commit e94045a110
2 changed files with 3 additions and 1 deletions

View file

@ -9,6 +9,8 @@
* util/grub.d/00_header.in: Likewise.
* util/update-grub_lib.in: Likewise.
* loader/i386/linux.c (allocate_pages): Fix a warning.
2008-11-19 Robert Millan <rmh@aybabtu.com>
* loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.

View file

@ -169,7 +169,7 @@ allocate_pages (grub_size_t prot_size)
if (real_size + mmap_size > size)
return 0;
real_mode_mem = (addr + size) - (real_size + mmap_size);
real_mode_mem = (void *) ((addr + size) - (real_size + mmap_size));
return 1;
}