1
0
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:
Yang Tse 2007-03-11 00:26:01 +00:00
parent 09c70dec08
commit 40e9e40cb4

View File

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