aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-03-11 00:26:01 +0000
committerYang Tse <yangsita@gmail.com>2007-03-11 00:26:01 +0000
commit40e9e40cb41f3755b7a07c7d73cac59a6633f121 (patch)
tree04ad4d27eb2a6d837cbb646e6e9b25349e43c62d /lib
parent09c70dec08529a2a9c552681c8e7c5c1c3f3a6ae (diff)
fix compiler warning: unused variable
Diffstat (limited to 'lib')
-rw-r--r--lib/connect.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/connect.c b/lib/connect.c
index d98569fce..d105ee03d 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -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;