X-Git-Url: https://git.sommitrealweird.co.uk/quagga-debian.git/blobdiff_plain/6d99eb2938e976229cb50d848a1bc491532b54f9..110ea29b8fe7d11de09e19382a9a5808cfb90d32:/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);