fix compiler warning

This commit is contained in:
Yang Tse
2010-03-11 18:53:42 +00:00
parent 3709ffc700
commit 52cd332b95
4 changed files with 10 additions and 12 deletions

View File

@@ -105,7 +105,7 @@ int Curl_resolv_getsock(struct connectdata *conn,
struct timeval timebuf;
struct timeval *timeout;
int max = ares_getsock(conn->data->state.areschannel,
(int *)socks, numsocks);
(ares_socket_t *)socks, numsocks);
maxtime.tv_sec = CURL_TIMEOUT_RESOLVE;
@@ -134,7 +134,7 @@ static int waitperform(struct connectdata *conn, int timeout_ms)
struct SessionHandle *data = conn->data;
int nfds;
int bitmask;
int socks[ARES_GETSOCK_MAXNUM];
ares_socket_t socks[ARES_GETSOCK_MAXNUM];
struct pollfd pfd[ARES_GETSOCK_MAXNUM];
int i;
int num = 0;