]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Remove list_iterate usage functional_test.c
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 26 Mar 2010 18:23:19 +0000 (19:23 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 26 Mar 2010 18:23:19 +0000 (19:23 +0100)
tests/lib/functional_test.c

index 8ff08cf8a846b6e61ba88802ddd93912ee560056..33eeec45113c2240a19c48fb795955ac5a6dec52 100644 (file)
@@ -26,15 +26,10 @@ grub_functional_test (struct grub_extcmd *cmd __attribute__ ((unused)),
                      int argc __attribute__ ((unused)),
                      char **args __attribute__ ((unused)))
 {
-  auto int run_test (grub_test_t test);
-  int run_test (grub_test_t test)
-  {
-    grub_test_run (test);
-    return 0;
-  }
+  grub_test_t test;
 
-  grub_list_iterate (GRUB_AS_LIST (grub_test_list),
-                    (grub_list_hook_t) run_test);
+  for (test = grub_test_list; test; test = test->next)
+    grub_test_run (test);
   return GRUB_ERR_NONE;
 }