X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fgetaddrinfo.c;h=5796e32af560c3cf78b0d70b242824b02c6eb352;hb=13d672fab94a1f87ef925be478b48e8e5fe7bed1;hp=97a3c1ef03730f9c1938ad06a0e558ea89e12053;hpb=0291c6ee6723896494ce389d33d540bf6391e46a;p=pazpar2-moved-to-github.git diff --git a/src/getaddrinfo.c b/src/getaddrinfo.c index 97a3c1e..5796e32 100644 --- a/src/getaddrinfo.c +++ b/src/getaddrinfo.c @@ -65,7 +65,7 @@ struct work { static int log_level = YLOG_LOG; -void perform_getaddrinfo(struct work *w) +static void perform_getaddrinfo(struct work *w) { struct addrinfo hints, *res; char host[512], *cp; @@ -177,7 +177,7 @@ static void getaddrinfo_start(iochan_man_t iochan_man) int host_getaddrinfo(struct host *host, iochan_man_t iochan_man) { struct work *w = xmalloc(sizeof(*w)); - int use_thread = 0; /* =0 to disable threading entirely */ + int use_thread = 1; /* =0 to disable threading entirely */ w->hostport = host->tproxy ? host->tproxy : host->proxy; w->ipport = 0;