* grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *

as file argument.
This commit is contained in:
Vladimir Serbinenko 2013-11-18 02:45:25 +01:00
parent 35d4761ce2
commit 04f39f6df8
3 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
as file argument.
2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.

View file

@ -1618,7 +1618,7 @@ grub_relocator_prepare_relocs (struct grub_relocator *rel, grub_addr_t addr,
}
void
grub_mm_check_real (char *file, int line)
grub_mm_check_real (const char *file, int line)
{
grub_mm_region_t r;
grub_mm_header_t p, pa;

View file

@ -35,7 +35,7 @@ void EXPORT_FUNC(grub_free) (void *ptr);
void *EXPORT_FUNC(grub_realloc) (void *ptr, grub_size_t size);
void *EXPORT_FUNC(grub_memalign) (grub_size_t align, grub_size_t size);
void grub_mm_check_real (char *file, int line);
void grub_mm_check_real (const char *file, int line);
#define grub_mm_check() grub_mm_check_real (GRUB_FILE, __LINE__);
/* For debugging. */