X-Git-Url: https://git.sommitrealweird.co.uk/quagga-debian.git/blobdiff_plain/191fe7a34582876de01d3e62c2a6587baf59a283..064d9c633233495319bcaa66335ea3d24c0bd7a1:/bgpd/bgp_main.c diff --git a/bgpd/bgp_main.c b/bgpd/bgp_main.c index af9c030..e5a4c60 100644 --- a/bgpd/bgp_main.c +++ b/bgpd/bgp_main.c @@ -346,7 +346,6 @@ main (int argc, char **argv) int daemon_mode = 0; int dryrun = 0; char *progname; - struct thread thread; int tmp_port; int skip_runas = 0; @@ -485,8 +484,7 @@ main (int argc, char **argv) getpid ()); /* Start finite state machine, here we go! */ - while (thread_fetch (bm->master, &thread)) - thread_call (&thread); + thread_main (bm->master); /* Not reached. */ return (0);