Merge tag 'upstream/1.2.3'
[quagga-debian.git] / ospfd / ospf_main.c
index 32b64e2aa0e35b688d5d9a6f99845ea68b5d72ff..ee48018fea3522a12edfbdcb4e5a280ffb6334c2 100644 (file)
@@ -186,7 +186,6 @@ main (int argc, char **argv)
   int daemon_mode = 0;
   char *config_file = NULL;
   char *progname;
-  struct thread thread;
   int dryrun = 0;
 
   /* Set umask before anything for security */
@@ -334,10 +333,8 @@ main (int argc, char **argv)
   /* Print banner. */
   zlog_notice ("OSPFd %s starting: vty@%d", QUAGGA_VERSION, vty_port);
 
-  /* Fetch next active thread. */
-  while (thread_fetch (master, &thread))
-    thread_call (&thread);
-
+  thread_main (master);
+  
   /* Not reached. */
   return (0);
 }