From 4059780d0129f63965344c18d97288c64ea17197 Mon Sep 17 00:00:00 2001 From: Noel Maersk Date: Fri, 28 Feb 2014 23:30:49 +0200 Subject: [PATCH] pool: do not use defines, just inline strings. --- pool.c | 7 +++++-- pool.h | 3 --- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pool.c b/pool.c index 03752097..285c09e4 100644 --- a/pool.c +++ b/pool.c @@ -36,12 +36,15 @@ #include char* get_pool_name(struct pool *pool) { - if (opt_incognito) return POOL_NAME_INCOGNITO; + if (opt_incognito) return ""; + 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 ""; + return pool->rpc_user; } diff --git a/pool.h b/pool.h index 8b7150b9..97873acb 100644 --- a/pool.h +++ b/pool.h @@ -3,9 +3,6 @@ #include "miner.h" -#define POOL_NAME_INCOGNITO "" -#define POOL_USER_INCOGNITO "" - extern char* get_pool_name(struct pool *pool); extern char* get_pool_user(struct pool *pool);