Fix regressions by previous commits
This commit is contained in:
parent
5855ddc402
commit
e571f2332e
5 changed files with 52 additions and 29 deletions
|
@ -47,6 +47,7 @@ static grub_err_t
|
|||
grub_ls_list_devices (int longlist)
|
||||
{
|
||||
grub_net_app_level_t proto;
|
||||
int first = 1;
|
||||
|
||||
auto int grub_ls_print_devices (const char *name);
|
||||
int grub_ls_print_devices (const char *name)
|
||||
|
@ -62,10 +63,11 @@ grub_ls_list_devices (int longlist)
|
|||
grub_device_iterate (grub_ls_print_devices);
|
||||
grub_xputs ("\n");
|
||||
|
||||
grub_puts_ (N_ ("Network protocols:\n"));
|
||||
|
||||
FOR_NET_APP_LEVEL (proto)
|
||||
{
|
||||
if (first)
|
||||
grub_puts_ (N_ ("Network protocols:"));
|
||||
first = 0;
|
||||
grub_printf ("%s ", proto->name);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue