Loading ares/ares_private.h +1 −1 Original line number Diff line number Diff line Loading @@ -57,7 +57,7 @@ struct send_request { /* Remaining data to send */ const unsigned char *data; int len; size_t len; /* Next request in queue */ struct send_request *next; Loading ares/ares_process.c +2 −2 Original line number Diff line number Diff line Loading @@ -119,7 +119,7 @@ static void write_tcp_data(ares_channel channel, fd_set *write_fds, time_t now) while (count) { sendreq = server->qhead; if (count >= sendreq->len) if ((size_t)count >= sendreq->len) { count -= sendreq->len; server->qhead = sendreq->next; Loading Loading @@ -150,7 +150,7 @@ static void write_tcp_data(ares_channel channel, fd_set *write_fds, time_t now) } /* Advance the send queue by as many bytes as we sent. */ if (count == sendreq->len) if ((size_t)count == sendreq->len) { server->qhead = sendreq->next; if (server->qhead == NULL) Loading Loading
ares/ares_private.h +1 −1 Original line number Diff line number Diff line Loading @@ -57,7 +57,7 @@ struct send_request { /* Remaining data to send */ const unsigned char *data; int len; size_t len; /* Next request in queue */ struct send_request *next; Loading
ares/ares_process.c +2 −2 Original line number Diff line number Diff line Loading @@ -119,7 +119,7 @@ static void write_tcp_data(ares_channel channel, fd_set *write_fds, time_t now) while (count) { sendreq = server->qhead; if (count >= sendreq->len) if ((size_t)count >= sendreq->len) { count -= sendreq->len; server->qhead = sendreq->next; Loading Loading @@ -150,7 +150,7 @@ static void write_tcp_data(ares_channel channel, fd_set *write_fds, time_t now) } /* Advance the send queue by as many bytes as we sent. */ if (count == sendreq->len) if ((size_t)count == sendreq->len) { server->qhead = sendreq->next; if (server->qhead == NULL) Loading