]> granicus.if.org Git - curl/commitdiff
- Fix configure_socket() to use ares_socket_t instead of int data type.
authorYang Tse <yangsita@gmail.com>
Tue, 29 Dec 2009 02:04:17 +0000 (02:04 +0000)
committerYang Tse <yangsita@gmail.com>
Tue, 29 Dec 2009 02:04:17 +0000 (02:04 +0000)
ares/ares_process.c

index 5df0f60bd4f8ba959db1546c3bc4e9714efba3e6..4b5f1825141e61cf0ac62a11fecbd1e1a8844163 100644 (file)
@@ -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);