From 94046d2d74e11db733198c91ada586b790dc8920 Mon Sep 17 00:00:00 2001 From: Alcaro Date: Wed, 20 May 2015 16:05:42 +0200 Subject: [PATCH] Clean out some unused variables. --- libretro-common/net/net_http.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/libretro-common/net/net_http.c b/libretro-common/net/net_http.c index 912185fc3b..aefe947ee4 100644 --- a/libretro-common/net/net_http.c +++ b/libretro-common/net/net_http.c @@ -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