1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-10 23:08:07 +00:00

pool: define and use POOL_NAME_INCOGNITO.

This commit is contained in:
Noel Maersk 2014-02-28 22:03:28 +02:00
parent 8e4fb3c554
commit bd6766f231
2 changed files with 3 additions and 1 deletions

2
pool.c
View File

@ -35,7 +35,7 @@
#include <string.h>
char* get_pool_name(struct pool *pool) {
if (opt_incognito) return "<incognito>";
if (opt_incognito) return POOL_NAME_INCOGNITO;
if (strcmp(pool->poolname, "") == 0) return pool->sockaddr_url;
return pool->poolname;
}

2
pool.h
View File

@ -3,6 +3,8 @@
#include "miner.h"
#define POOL_NAME_INCOGNITO "<incognito>"
extern char* get_pool_name(struct pool *pool);
#endif /* POOL_H */