]> granicus.if.org Git - curl/commitdiff
remove write-only variable
authorPierre Ynard <linkfanel@yahoo.fr>
Mon, 23 Jan 2012 09:44:53 +0000 (10:44 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 28 Jan 2012 12:58:49 +0000 (13:58 +0100)
lib/connect.c

index f76ec0e0befd13acce66eaf7bc053e01441e1fc7..582782e5c531bc4a1885750783e6df78187bbf05 100644 (file)
@@ -989,7 +989,6 @@ CURLcode Curl_connecthost(struct connectdata *conn,  /* context */
 {
   struct SessionHandle *data = conn->data;
   curl_socket_t sockfd = CURL_SOCKET_BAD;
-  int aliasindex;
   Curl_addrinfo *ai;
   Curl_addrinfo *curr_addr;
 
@@ -1026,8 +1025,7 @@ CURLcode Curl_connecthost(struct connectdata *conn,  /* context */
   /*
    * Connecting with a Curl_addrinfo chain
    */
-  for(curr_addr = ai, aliasindex=0; curr_addr;
-      curr_addr = curr_addr->ai_next, aliasindex++) {
+  for(curr_addr = ai; curr_addr; curr_addr = curr_addr->ai_next) {
 
     /* start connecting to the IP curr_addr points to */
     CURLcode res =