diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-02-27 13:21:47 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-02-27 13:21:47 +0000 |
commit | 17a3aa1ddcd63b4ae352c85194c43645de07d0b6 (patch) | |
tree | 47a58599c0241c87f1a18471ed7d82190a613c6b /ares | |
parent | 6c78b4b7c0673be0ca92d728c6fab6c260a78599 (diff) |
minor size_t fix to kill a warning
Diffstat (limited to 'ares')
-rw-r--r-- | ares/ares_private.h | 2 | ||||
-rw-r--r-- | ares/ares_process.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ares/ares_private.h b/ares/ares_private.h index 123c96a0c..7a755e004 100644 --- a/ares/ares_private.h +++ b/ares/ares_private.h @@ -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; diff --git a/ares/ares_process.c b/ares/ares_process.c index b2661f730..6a7585c0a 100644 --- a/ares/ares_process.c +++ b/ares/ares_process.c @@ -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; @@ -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) |