diff options
author | Pierre Ynard <linkfanel@yahoo.fr> | 2012-01-23 10:44:53 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2012-01-28 13:58:49 +0100 |
commit | 4d2737bcb2c6713d5eebba09343367b6b4d5580c (patch) | |
tree | b454d8de6be535e903b85027cf9de506c67de2c5 /lib | |
parent | 8ee2576b6fcc8aee0c768255a55e255a1868b609 (diff) |
remove write-only variable
Diffstat (limited to 'lib')
-rw-r--r-- | lib/connect.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/connect.c b/lib/connect.c index f76ec0e0b..582782e5c 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -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 = |