X-Git-Url: https://git.sommitrealweird.co.uk/quagga-debian.git/blobdiff_plain/191fe7a34582876de01d3e62c2a6587baf59a283..064d9c633233495319bcaa66335ea3d24c0bd7a1:/ospfclient/ospfclient.c 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;