Browse Source

pool: do not use defines, just inline strings.

build-mingw
Noel Maersk 11 years ago
parent
commit
4059780d01
  1. 7
      pool.c
  2. 3
      pool.h

7
pool.c

@ -36,12 +36,15 @@ @@ -36,12 +36,15 @@
#include <string.h>
char* get_pool_name(struct pool *pool) {
if (opt_incognito) return POOL_NAME_INCOGNITO;
if (opt_incognito) return "<pool>";
if (strcmp(pool->poolname, "") == 0) return pool->sockaddr_url;
return pool->poolname;
}
char* get_pool_user(struct pool *pool) {
if (opt_incognito) return POOL_USER_INCOGNITO;
if (opt_incognito) return "<user>";
return pool->rpc_user;
}

3
pool.h

@ -3,9 +3,6 @@ @@ -3,9 +3,6 @@
#include "miner.h"
#define POOL_NAME_INCOGNITO "<incognito>"
#define POOL_USER_INCOGNITO "<incognito>"
extern char* get_pool_name(struct pool *pool);
extern char* get_pool_user(struct pool *pool);

Loading…
Cancel
Save