Loading lib/hostip.c +10 −2 Original line number Diff line number Diff line Loading @@ -98,10 +98,16 @@ static struct hostent* pack_hostent(char** buf, struct hostent* orig); #endif #ifdef USE_THREADING_GETHOSTBYNAME #ifdef DEBUG_THREADING_GETHOSTBYNAME /* If this is defined, provide tracing */ #define TRACE(args) \ do { trace_it("%u: ", __LINE__); trace_it args; } while (0) static void trace_it (const char *fmt, ...); #else #define TRACE(x) #endif static struct hostent* pack_hostent (char** buf, struct hostent* orig); static bool init_gethostbyname_thread (struct connectdata *conn, const char *hostname, int port); Loading Loading @@ -1166,6 +1172,7 @@ static Curl_addrinfo *my_getaddrinfo(struct connectdata *conn, #if defined(USE_THREADING_GETHOSTBYNAME) #ifdef DEBUG_THREADING_GETHOSTBYNAME static void trace_it (const char *fmt, ...) { static int do_trace = -1; Loading @@ -1180,6 +1187,7 @@ static void trace_it (const char *fmt, ...) fflush (stderr); va_end (args); } #endif /* For builds without ARES/USE_IPV6, create a resolver thread and wait on it. */ Loading Loading
lib/hostip.c +10 −2 Original line number Diff line number Diff line Loading @@ -98,10 +98,16 @@ static struct hostent* pack_hostent(char** buf, struct hostent* orig); #endif #ifdef USE_THREADING_GETHOSTBYNAME #ifdef DEBUG_THREADING_GETHOSTBYNAME /* If this is defined, provide tracing */ #define TRACE(args) \ do { trace_it("%u: ", __LINE__); trace_it args; } while (0) static void trace_it (const char *fmt, ...); #else #define TRACE(x) #endif static struct hostent* pack_hostent (char** buf, struct hostent* orig); static bool init_gethostbyname_thread (struct connectdata *conn, const char *hostname, int port); Loading Loading @@ -1166,6 +1172,7 @@ static Curl_addrinfo *my_getaddrinfo(struct connectdata *conn, #if defined(USE_THREADING_GETHOSTBYNAME) #ifdef DEBUG_THREADING_GETHOSTBYNAME static void trace_it (const char *fmt, ...) { static int do_trace = -1; Loading @@ -1180,6 +1187,7 @@ static void trace_it (const char *fmt, ...) fflush (stderr); va_end (args); } #endif /* For builds without ARES/USE_IPV6, create a resolver thread and wait on it. */ Loading