Merge tag 'upstream/1.2.3'
[quagga-debian.git] / tests / common-cli.c
index 7135856e9907d6432c90688c35f829dfb066bd37..3486c3729fce3d725f9f4046b6a71850c1d02a0a 100644 (file)
@@ -55,8 +55,6 @@ static void vty_do_exit(void)
 int
 main (int argc, char **argv)
 {
-  struct thread thread;
-
   /* Set umask before anything for security */
   umask (0027);
 
@@ -81,8 +79,7 @@ main (int argc, char **argv)
   vty_stdio (vty_do_exit);
 
   /* Fetch next active thread. */
-  while (thread_fetch (master, &thread))
-    thread_call (&thread);
+  thread_main (master);
 
   /* Not reached. */
   exit (0);