1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

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

This commit is contained in:
ckolivas 2012-10-30 16:45:27 +11:00
parent 7e17af6913
commit a2d5783509
2 changed files with 1 additions and 2 deletions

View File

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

2
util.c
View File

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