remove write-only variable
This commit is contained in:

committed by
Daniel Stenberg

parent
8ee2576b6f
commit
4d2737bcb2
@@ -989,7 +989,6 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */
|
|||||||
{
|
{
|
||||||
struct SessionHandle *data = conn->data;
|
struct SessionHandle *data = conn->data;
|
||||||
curl_socket_t sockfd = CURL_SOCKET_BAD;
|
curl_socket_t sockfd = CURL_SOCKET_BAD;
|
||||||
int aliasindex;
|
|
||||||
Curl_addrinfo *ai;
|
Curl_addrinfo *ai;
|
||||||
Curl_addrinfo *curr_addr;
|
Curl_addrinfo *curr_addr;
|
||||||
|
|
||||||
@@ -1026,8 +1025,7 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */
|
|||||||
/*
|
/*
|
||||||
* Connecting with a Curl_addrinfo chain
|
* Connecting with a Curl_addrinfo chain
|
||||||
*/
|
*/
|
||||||
for(curr_addr = ai, aliasindex=0; curr_addr;
|
for(curr_addr = ai; curr_addr; curr_addr = curr_addr->ai_next) {
|
||||||
curr_addr = curr_addr->ai_next, aliasindex++) {
|
|
||||||
|
|
||||||
/* start connecting to the IP curr_addr points to */
|
/* start connecting to the IP curr_addr points to */
|
||||||
CURLcode res =
|
CURLcode res =
|
||||||
|
Reference in New Issue
Block a user