aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-12-29 02:04:17 +0000
committerYang Tse <yangsita@gmail.com>2009-12-29 02:04:17 +0000
commite70c0913b1e989358a7d958aa20d78f11b48e088 (patch)
tree6b068278021718b02bfa364e8c69b1f0e0bdf52c
parent5b2a31ae41ad6c9f686824816903192bff1c2a16 (diff)
- Fix configure_socket() to use ares_socket_t instead of int data type.
-rw-r--r--ares/ares_process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ares/ares_process.c b/ares/ares_process.c
index 5df0f60bd..4b5f18251 100644
--- a/ares/ares_process.c
+++ b/ares/ares_process.c
@@ -92,7 +92,7 @@ static void skip_server(ares_channel channel, struct query *query,
int whichserver);
static void next_server(ares_channel channel, struct query *query,
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_udp_socket(ares_channel channel, struct server_state *server);
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
}
-static int configure_socket(int s, ares_channel channel)
+static int configure_socket(ares_socket_t s, ares_channel channel)
{
setsocknonblock(s, TRUE);