mirror of
https://github.com/curl/curl.git
synced 2025-02-17 14:59:45 +08:00
fix compiler warning: unused variable
This commit is contained in:
parent
09c70dec08
commit
40e9e40cb4
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user