Browse Source

pool: define and use POOL_NAME_INCOGNITO.

build-mingw
Noel Maersk 11 years ago
parent
commit
bd6766f231
  1. 2
      pool.c
  2. 2
      pool.h

2
pool.c

@ -35,7 +35,7 @@ @@ -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

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

Loading…
Cancel
Save