2005-01-20 Marco Gerards <metgerards@student.han.nl>

* include/grub/mm.h (grub_mm_init_region): Change the type of the
	`unsigned' arguments to `grub_size_t'.
	(grub_malloc): Likewise.
	(grub_realloc): Likewise.
	(grub_memalign): Likewise.
	* kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
	* kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
	* util/misc.c (grub_malloc): Likewise.
	(grub_realloc): Likewise.
	* kern/mm.c (get_header_from_pointer): Change the casts to
	`unsigned' into a cast to `grub_size_t'.

	* fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
	point to `currnode' when `currnode' is changed.

	* util/grub-emu.c (main): Initialize `progname'.  Reported by Nico
	Schottelius <nico-linux@schottelius.org>.
This commit is contained in:
marco_g 2005-01-20 17:25:39 +00:00
parent d0ff18e182
commit 777aff3957
8 changed files with 35 additions and 13 deletions

View file

@ -206,7 +206,7 @@ grub_util_write_image (const char *img, size_t size, FILE *out)
}
void *
grub_malloc (unsigned size)
grub_malloc (grub_size_t size)
{
return xmalloc (size);
}
@ -218,7 +218,7 @@ grub_free (void *ptr)
}
void *
grub_realloc (void *ptr, unsigned size)
grub_realloc (void *ptr, grub_size_t size)
{
return xrealloc (ptr, size);
}