X-Git-Url: https://git.sommitrealweird.co.uk/quagga-debian.git/blobdiff_plain/6d99eb2938e976229cb50d848a1bc491532b54f9..HEAD:/bgpd/bgp_main.c?ds=sidebyside 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);