Skip to content

Commit 4059780

Browse files
committed
pool: do not use defines, just inline strings.
1 parent d58de45 commit 4059780

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pool.c

+5-2
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,15 @@
3636
#include <string.h>
3737

3838
char* get_pool_name(struct pool *pool) {
39-
if (opt_incognito) return POOL_NAME_INCOGNITO;
39+
if (opt_incognito) return "<pool>";
40+
4041
if (strcmp(pool->poolname, "") == 0) return pool->sockaddr_url;
42+
4143
return pool->poolname;
4244
}
4345

4446
char* get_pool_user(struct pool *pool) {
45-
if (opt_incognito) return POOL_USER_INCOGNITO;
47+
if (opt_incognito) return "<user>";
48+
4649
return pool->rpc_user;
4750
}

pool.h

-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33

44
#include "miner.h"
55

6-
#define POOL_NAME_INCOGNITO "<incognito>"
7-
#define POOL_USER_INCOGNITO "<incognito>"
8-
96
extern char* get_pool_name(struct pool *pool);
107
extern char* get_pool_user(struct pool *pool);
118

0 commit comments

Comments
 (0)