X-Git-Url: https://git.sommitrealweird.co.uk/quagga-debian.git/blobdiff_plain/191fe7a34582876de01d3e62c2a6587baf59a283..064d9c633233495319bcaa66335ea3d24c0bd7a1:/tests/common-cli.c diff --git a/tests/common-cli.c b/tests/common-cli.c index 7135856..3486c37 100644 --- a/tests/common-cli.c +++ b/tests/common-cli.c @@ -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);