2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>

Fix warnings in grub-emu when compiling with maximum warning options.

	* util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
	(grub_arch_modules_addr): Return 0 and not NULL.
	* util/misc.c (ENABLE_RELOCATABLE): New definition.
	(xstrdup): USe newstr instead of dup.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-02-07 02:37:48 +01:00
parent 74e31b5ca2
commit 98e6959dea
3 changed files with 16 additions and 5 deletions

View file

@ -40,6 +40,7 @@
#include <grub_emu_init.h>
#define ENABLE_RELOCATABLE 0
#include "progname.h"
/* Used for going back to the main function. */
@ -51,7 +52,7 @@ static char *prefix = NULL;
grub_addr_t
grub_arch_modules_addr (void)
{
return NULL;
return 0;
}
grub_err_t