From 7570d885daa707888addb457e60524292d71edf6 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 8 Sep 2013 19:54:18 +1000 Subject: [PATCH] Remove unused pbase variable. --- util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util.c b/util.c index d49b09a6..fc488a49 100644 --- a/util.c +++ b/util.c @@ -1927,7 +1927,7 @@ static bool socks4_negotiate(struct pool *pool, int sockd, bool socks4a) static bool setup_stratum_socket(struct pool *pool) { - struct addrinfo servinfobase, *servinfo, *hints, pbase, *p; + struct addrinfo servinfobase, *servinfo, *hints, *p; char *sockaddr_url, *sockaddr_port; int sockd; @@ -1943,7 +1943,7 @@ static bool setup_stratum_socket(struct pool *pool) hints->ai_family = AF_UNSPEC; hints->ai_socktype = SOCK_STREAM; servinfo = &servinfobase; - p = &pbase; + if (!pool->rpc_proxy && opt_socks_proxy) { pool->rpc_proxy = opt_socks_proxy; extract_sockaddr(pool->rpc_proxy, &pool->sockaddr_proxy_url, &pool->sockaddr_proxy_port);