cURL / Mailing Lists / curl-library / Single Mail

curl-library

[PATCH 1/2] remove write-only variable

From: Pierre Ynard <linkfanel_at_yahoo.fr>
Date: Mon, 23 Jan 2012 10:44:53 +0100

--- curl-7.23.1/lib/connect.c 2012-01-20 13:11:39.000000000 +0100
+++ curl-7.23.1/lib/connect.c 2012-01-20 13:12:22.000000000 +0100
@@ -1029,7 +1029,6 @@
 {
   struct SessionHandle *data = conn->data;
   curl_socket_t sockfd = CURL_SOCKET_BAD;
- int aliasindex;
   Curl_addrinfo *ai;
   Curl_addrinfo *curr_addr;
 
@@ -1066,8 +1065,7 @@
   /*
    * 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 =

-- 
Pierre Ynard
"Une âme dans un corps, c'est comme un dessin sur une feuille de papier."
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-01-23