fix compiler warning: unused variable

This commit is contained in:
Yang Tse 2007-03-11 00:26:01 +00:00
parent 09c70dec08
commit 40e9e40cb4
1 changed files with 3 additions and 1 deletions

View File

@ -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;