Remove list_iterate usage functional_test.c
This commit is contained in:
parent
2aa6398b64
commit
7c0ab99bd2
1 changed files with 3 additions and 8 deletions
|
@ -26,15 +26,10 @@ grub_functional_test (struct grub_extcmd *cmd __attribute__ ((unused)),
|
||||||
int argc __attribute__ ((unused)),
|
int argc __attribute__ ((unused)),
|
||||||
char **args __attribute__ ((unused)))
|
char **args __attribute__ ((unused)))
|
||||||
{
|
{
|
||||||
auto int run_test (grub_test_t test);
|
grub_test_t test;
|
||||||
int run_test (grub_test_t test)
|
|
||||||
{
|
|
||||||
grub_test_run (test);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
grub_list_iterate (GRUB_AS_LIST (grub_test_list),
|
for (test = grub_test_list; test; test = test->next)
|
||||||
(grub_list_hook_t) run_test);
|
grub_test_run (test);
|
||||||
return GRUB_ERR_NONE;
|
return GRUB_ERR_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue