* util/grub-editenv.c (list_variables): Move print_var out of its

parent.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-03-01 13:52:05 +01:00
parent ca9c260868
commit f9b7d78007
2 changed files with 12 additions and 7 deletions

View file

@ -1,3 +1,8 @@
2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub-editenv.c (list_variables): Move print_var out of its
parent.
2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested

View file

@ -184,18 +184,18 @@ open_envblk_file (const char *name)
return envblk;
}
static int
print_var (const char *varname, const char *value)
{
printf ("%s=%s\n", varname, value);
return 0;
}
static void
list_variables (const char *name)
{
grub_envblk_t envblk;
auto int print_var (const char *varname, const char *value);
int print_var (const char *varname, const char *value)
{
printf ("%s=%s\n", varname, value);
return 0;
}
envblk = open_envblk_file (name);
grub_envblk_iterate (envblk, print_var);
grub_envblk_close (envblk);