X-Git-Url: https://git.sommitrealweird.co.uk/quagga-debian.git/blobdiff_plain/6d99eb2938e976229cb50d848a1bc491532b54f9..refs/heads/upstream:/ospfclient/ospfclient.c?ds=inline diff --git a/ospfclient/ospfclient.c b/ospfclient/ospfclient.c index 1de7644..324e539 100644 --- a/ospfclient/ospfclient.c +++ b/ospfclient/ospfclient.c @@ -284,8 +284,6 @@ static int usage() int main (int argc, char *argv[]) { - struct thread thread; - args = argv; /* ospfclient should be started with the following arguments: @@ -340,11 +338,7 @@ main (int argc, char *argv[]) thread_add_read (master, lsa_read, oclient, oclient->fd_async); /* Now connection is established, run loop */ - while (1) - { - thread_fetch (master, &thread); - thread_call (&thread); - } + thread_main (master); /* Never reached */ return 0;