* grub-core/normal/context.c (grub_env_context_close): Silence spurious
warning. * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise. * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned counter.
This commit is contained in:
parent
b44a558c9a
commit
b8494fbe5c
4 changed files with 12 additions and 3 deletions
|
@ -1,3 +1,11 @@
|
|||
2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/normal/context.c (grub_env_context_close): Silence spurious
|
||||
warning.
|
||||
* grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
|
||||
* grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
|
||||
counter.
|
||||
|
||||
2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
Use alias->path rather than buggy "canon".
|
||||
|
|
|
@ -148,7 +148,7 @@ grub_env_context_close (void)
|
|||
grub_err_t
|
||||
grub_env_extractor_close (int source)
|
||||
{
|
||||
grub_menu_t menu, menu2;
|
||||
grub_menu_t menu = NULL;
|
||||
grub_menu_entry_t *last;
|
||||
grub_err_t err;
|
||||
|
||||
|
@ -161,6 +161,7 @@ grub_env_extractor_close (int source)
|
|||
|
||||
if (source)
|
||||
{
|
||||
grub_menu_t menu2;
|
||||
menu2 = grub_env_get_menu ();
|
||||
|
||||
last = &menu2->entry_list;
|
||||
|
|
|
@ -159,7 +159,7 @@ grub_menu_execute_entry(grub_menu_entry_t entry, int auto_boot)
|
|||
{
|
||||
grub_err_t err = GRUB_ERR_NONE;
|
||||
int errs_before;
|
||||
grub_menu_t menu;
|
||||
grub_menu_t menu = NULL;
|
||||
char *optr, *buf, *oldchosen = NULL, *olddefault = NULL;
|
||||
const char *ptr, *chosen, *def;
|
||||
grub_size_t sz = 0;
|
||||
|
|
|
@ -234,7 +234,7 @@ pc_partition_map_embed (struct grub_disk *disk, unsigned int *nsectors,
|
|||
|
||||
if (end >= *nsectors + 1)
|
||||
{
|
||||
int i;
|
||||
unsigned i;
|
||||
*nsectors = end - 1;
|
||||
*sectors = grub_malloc (*nsectors * sizeof (**sectors));
|
||||
if (!*sectors)
|
||||
|
|
Loading…
Reference in a new issue