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 @@
#include <string.h> #include <string.h>
char* get_pool_name(struct pool *pool) { 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; if (strcmp(pool->poolname, "") == 0) return pool->sockaddr_url;
return pool->poolname; return pool->poolname;
} }

2
pool.h

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

Loading…
Cancel
Save