]> granicus.if.org Git - curl/commitdiff
Added note for CURLRES_ARES and CURLRES_IPV6.
authorGisle Vanem <gvanem@broadpark.no>
Tue, 25 Jul 2006 10:49:12 +0000 (10:49 +0000)
committerGisle Vanem <gvanem@broadpark.no>
Tue, 25 Jul 2006 10:49:12 +0000 (10:49 +0000)
lib/hostasyn.c

index f7f7b6a8ff76bff75e5592aab2570914df58c038..5efd8320bda01ff5c4ce89329ff6d3ee6a722a24 100644 (file)
@@ -112,8 +112,8 @@ static CURLcode addrinfo_callback(void *arg, /* "struct connectdata *" */
   if(CURL_ASYNC_SUCCESS == status) {
 
     /*
-     * IPv4: Curl_addrinfo_copy() copies the address and returns an allocated
-     * version.
+     * IPv4/ares: Curl_addrinfo_copy() copies the address and returns an
+     * allocated version.
      *
      * IPv6: Curl_addrinfo_copy() returns the input pointer!
      */
@@ -164,6 +164,9 @@ CURLcode Curl_addrinfo6_callback(void *arg, /* "struct connectdata *" */
                                  int status,
                                  struct addrinfo *ai)
 {
+ /* NOTE: for CURLRES_ARES, the 'ai' argument is really a
+  * 'struct hostent' pointer.
+  */
   return addrinfo_callback(arg, status, ai);
 }
 #endif