* grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
as file argument.
This commit is contained in:
parent
35d4761ce2
commit
04f39f6df8
3 changed files with 7 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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. */
|
||||
|
|
Loading…
Reference in a new issue