Browse Source

server and client sockaddr_in are no longer used in struct pool.

nfactor-troky
ckolivas 12 years ago
parent
commit
a2d5783509
  1. 1
      miner.h
  2. 2
      util.c

1
miner.h

@ -872,7 +872,6 @@ struct pool { @@ -872,7 +872,6 @@ struct pool {
CURL *stratum_curl;
SOCKETTYPE sock;
char sockbuf[RBUFSIZE];
struct sockaddr_in *server, client;
char *sockaddr_url; /* stripped url used for sockaddr */
char *nonce1;
uint32_t nonce2;

2
util.c

@ -876,8 +876,8 @@ bool extract_sockaddr(struct pool *pool, char *url) @@ -876,8 +876,8 @@ bool extract_sockaddr(struct pool *pool, char *url)
applog(LOG_DEBUG, "Failed to extract sock addr");
return false;
}
freeaddrinfo(res);
pool->server = (struct sockaddr_in *)res->ai_addr;
pool->sockaddr_url = strdup(url_address);
return true;

Loading…
Cancel
Save