Skip to content

Commit

Permalink
Updated code formatting under gdns_thread_create().
Browse files Browse the repository at this point in the history
  • Loading branch information
allinurl committed Sep 24, 2016
1 parent d03316c commit 07fe383
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/gdns.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,12 +286,11 @@ gdns_free_queue (void)
void
gdns_thread_create (void)
{
int thread;
int th;

active_gdns = 1;
thread =
pthread_create (&(gdns_thread.thread), NULL, (void *) &dns_worker, NULL);
if (thread)
FATAL ("Return code from pthread_create(): %d", thread);
th = pthread_create (&(gdns_thread.thread), NULL, (void *) &dns_worker, NULL);
if (th)
FATAL ("Return code from pthread_create(): %d", th);
pthread_detach (gdns_thread.thread);
}

0 comments on commit 07fe383

Please sign in to comment.