1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-11 12:05:06 -05:00

- Fix configure_socket() to use ares_socket_t instead of int data type.

This commit is contained in:
Yang Tse 2009-12-29 02:04:17 +00:00
parent 5b2a31ae41
commit e70c0913b1

View File

@ -92,7 +92,7 @@ static void skip_server(ares_channel channel, struct query *query,
int whichserver); int whichserver);
static void next_server(ares_channel channel, struct query *query, static void next_server(ares_channel channel, struct query *query,
struct timeval *now); struct timeval *now);
static int configure_socket(int s, ares_channel channel); static int configure_socket(ares_socket_t s, ares_channel channel);
static int open_tcp_socket(ares_channel channel, struct server_state *server); static int open_tcp_socket(ares_channel channel, struct server_state *server);
static int open_udp_socket(ares_channel channel, struct server_state *server); static int open_udp_socket(ares_channel channel, struct server_state *server);
static int same_questions(const unsigned char *qbuf, int qlen, static int same_questions(const unsigned char *qbuf, int qlen,
@ -856,7 +856,7 @@ static int setsocknonblock(ares_socket_t sockfd, /* operate on this */
#endif #endif
} }
static int configure_socket(int s, ares_channel channel) static int configure_socket(ares_socket_t s, ares_channel channel)
{ {
setsocknonblock(s, TRUE); setsocknonblock(s, TRUE);