mirror of
https://github.com/moparisthebest/curl
synced 2024-11-16 06:25:03 -05: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,
|
static CURLcode bindlocal(struct connectdata *conn,
|
||||||
curl_socket_t sockfd)
|
curl_socket_t sockfd)
|
||||||
{
|
{
|
||||||
|
#ifdef ENABLE_IPV6
|
||||||
|
char ipv6_addr[16];
|
||||||
|
#endif
|
||||||
struct SessionHandle *data = conn->data;
|
struct SessionHandle *data = conn->data;
|
||||||
struct sockaddr_in me;
|
struct sockaddr_in me;
|
||||||
struct sockaddr *sock = NULL; /* bind to this address */
|
struct sockaddr *sock = NULL; /* bind to this address */
|
||||||
@ -233,7 +236,6 @@ static CURLcode bindlocal(struct connectdata *conn,
|
|||||||
char myhost[256] = "";
|
char myhost[256] = "";
|
||||||
in_addr_t in;
|
in_addr_t in;
|
||||||
int rc;
|
int rc;
|
||||||
char ipv6_addr[16];
|
|
||||||
bool was_iface = FALSE;
|
bool was_iface = FALSE;
|
||||||
int in6 = -1;
|
int in6 = -1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user