mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
minor size_t fix to kill a warning
This commit is contained in:
parent
6c78b4b7c0
commit
17a3aa1ddc
@ -57,7 +57,7 @@
|
|||||||
struct send_request {
|
struct send_request {
|
||||||
/* Remaining data to send */
|
/* Remaining data to send */
|
||||||
const unsigned char *data;
|
const unsigned char *data;
|
||||||
int len;
|
size_t len;
|
||||||
|
|
||||||
/* Next request in queue */
|
/* Next request in queue */
|
||||||
struct send_request *next;
|
struct send_request *next;
|
||||||
|
@ -119,7 +119,7 @@ static void write_tcp_data(ares_channel channel, fd_set *write_fds, time_t now)
|
|||||||
while (count)
|
while (count)
|
||||||
{
|
{
|
||||||
sendreq = server->qhead;
|
sendreq = server->qhead;
|
||||||
if (count >= sendreq->len)
|
if ((size_t)count >= sendreq->len)
|
||||||
{
|
{
|
||||||
count -= sendreq->len;
|
count -= sendreq->len;
|
||||||
server->qhead = sendreq->next;
|
server->qhead = sendreq->next;
|
||||||
@ -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. */
|
/* 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;
|
server->qhead = sendreq->next;
|
||||||
if (server->qhead == NULL)
|
if (server->qhead == NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user