Merge tag 'upstream/1.2.3'
[quagga-debian.git] / zebra / test_main.c
index 09f53adfbc324187dee1b102a698b0c7f7ebe549..3dd02bc56de6876ef78415a70b5fc352f349dc2f 100644 (file)
@@ -273,7 +273,6 @@ main (int argc, char **argv)
   int daemon_mode = 0;
   char *config_file = NULL;
   char *progname;
-  struct thread thread;
 
   /* Set umask before anything for security */
   umask (0027);
@@ -388,8 +387,7 @@ main (int argc, char **argv)
   /* Print banner. */
   zlog_notice ("Zebra %s starting: vty@%d", QUAGGA_VERSION, vty_port);
 
-  while (thread_fetch (zebrad.master, &thread))
-    thread_call (&thread);
+  thread_main (zebrad.master);
 
   /* Not reached... */
   return 0;