]> granicus.if.org Git - curl/commitdiff
prevent a warning
authorDaniel Stenberg <daniel@haxx.se>
Wed, 23 Jun 2004 06:14:23 +0000 (06:14 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 23 Jun 2004 06:14:23 +0000 (06:14 +0000)
lib/connect.c

index ed5bc80ac26800b8478544cae3c42cee5b023dc8..6d953cad3a8752f66e2ebe998815289db4683822 100644 (file)
@@ -608,6 +608,8 @@ CURLcode Curl_connecthost(struct connectdata *conn,  /* context */
   /*
    * Connecting with a getaddrinfo chain
    */
+  (void)port; /* the port number is already included in the getaddrinfo
+                 struct */
   for (curr_addr = remotehost->addr, aliasindex=0; curr_addr;
        curr_addr = curr_addr->ai_next, aliasindex++) {
     sockfd = socket(curr_addr->ai_family, curr_addr->ai_socktype,