Skip to content
Snippets Groups Projects
Commit 40e9e40c authored by Yang Tse's avatar Yang Tse
Browse files

fix compiler warning: unused variable

parent 09c70dec
No related branches found
No related tags found
No related merge requests found
......@@ -216,6 +216,9 @@ int waitconnect(curl_socket_t sockfd, /* socket */
static CURLcode bindlocal(struct connectdata *conn,
curl_socket_t sockfd)
{
#ifdef ENABLE_IPV6
char ipv6_addr[16];
#endif
struct SessionHandle *data = conn->data;
struct sockaddr_in me;
struct sockaddr *sock = NULL; /* bind to this address */
......@@ -233,7 +236,6 @@ static CURLcode bindlocal(struct connectdata *conn,
char myhost[256] = "";
in_addr_t in;
int rc;
char ipv6_addr[16];
bool was_iface = FALSE;
int in6 = -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment