New upstream version 1.2.3
[quagga-debian.git] / tests / main.c
index 5396c7d50fa9725834ffc3cf115b5e4547b797f7..97028e35f9843a4737946e0f3ca8f7f3e8186a4d 100644 (file)
@@ -106,7 +106,6 @@ main (int argc, char **argv)
   int vty_port = 4000;
   int daemon_mode = 0;
   char *progname;
-  struct thread thread;
   char *config_file = NULL;
   
   /* Set umask before anything for security */
@@ -191,8 +190,7 @@ main (int argc, char **argv)
   test_init();  
   
   /* Fetch next active thread. */
-  while (thread_fetch (master, &thread))
-    thread_call (&thread);
+  thread_main (master);
 
   /* Not reached. */
   exit (0);