From e575763a80f26f2f00e2dcc20480b93a286aac93 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 22 Oct 2012 22:06:00 +1100 Subject: [PATCH] Avoid redefining macros and align to 4 byte boundaries. --- miner.h | 4 ++-- util.c | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/miner.h b/miner.h index 1cfce8e5..16dcbe3a 100644 --- a/miner.h +++ b/miner.h @@ -800,8 +800,8 @@ struct stratum_work { int diff; }; -#define RECVSIZE 8191 -#define RBUFSIZE (RECVSIZE + 1) +#define RECVSIZE 8192 +#define RBUFSIZE (RECVSIZE + 4) struct pool { int pool_no; diff --git a/util.c b/util.c index 03725938..cfcb16b3 100644 --- a/util.c +++ b/util.c @@ -914,9 +914,6 @@ bool stratum_send(struct pool *pool, char *s, ssize_t len) return ret; } -#define RECVSIZE 8191 -#define RBUFSIZE (RECVSIZE + 1) - static void clear_sock(struct pool *pool) { SOCKETTYPE sock = pool->sock;