Skip to content

Commit

Permalink
asyn-thread: remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
jay committed Feb 9, 2020
1 parent 11ee064 commit 05d3312
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/asyn-thread.c
Expand Up @@ -720,7 +720,6 @@ Curl_addrinfo *Curl_resolver_getaddrinfo(struct connectdata *conn,
int *waitp)
{
struct addrinfo hints;
char sbuf[12];
int pf = PF_INET;
struct Curl_easy *data = conn->data;
struct resdata *reslv = (struct resdata *)data->state.resolver;
Expand Down Expand Up @@ -753,8 +752,6 @@ Curl_addrinfo *Curl_resolver_getaddrinfo(struct connectdata *conn,
hints.ai_socktype = (conn->transport == TRNSPRT_TCP)?
SOCK_STREAM : SOCK_DGRAM;

msnprintf(sbuf, sizeof(sbuf), "%d", port);

reslv->start = Curl_now();
/* fire up a new resolver thread! */
if(init_resolve_thread(conn, hostname, port, &hints)) {
Expand Down

0 comments on commit 05d3312

Please sign in to comment.