Clean out some unused variables.

This commit is contained in:
Alcaro 2015-05-20 16:05:42 +02:00
parent 533a0b7f7f
commit 94046d2d74

View File

@ -66,10 +66,8 @@ struct http_connection_t
static int net_http_new_socket(const char * domain, int port)
{
char portstr[16];
int fd, i = 1;
#ifdef _WIN32
u_long mode = 1;
#else
int fd;
#ifndef _WIN32
struct timeval timeout;
#endif
struct addrinfo hints, *addr = NULL;
@ -84,8 +82,6 @@ static int net_http_new_socket(const char * domain, int port)
if (getaddrinfo_rarch(domain, portstr, &hints, &addr) < 0)
return -1;
(void)i;
fd = socket(addr->ai_family, addr->ai_socktype, addr->ai_protocol);
#ifndef _WIN32