Browse Source

Avoid redefining macros and align to 4 byte boundaries.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
e575763a80
  1. 4
      miner.h
  2. 3
      util.c

4
miner.h

@ -800,8 +800,8 @@ struct stratum_work {
int diff; int diff;
}; };
#define RECVSIZE 8191 #define RECVSIZE 8192
#define RBUFSIZE (RECVSIZE + 1) #define RBUFSIZE (RECVSIZE + 4)
struct pool { struct pool {
int pool_no; int pool_no;

3
util.c

@ -914,9 +914,6 @@ bool stratum_send(struct pool *pool, char *s, ssize_t len)
return ret; return ret;
} }
#define RECVSIZE 8191
#define RBUFSIZE (RECVSIZE + 1)
static void clear_sock(struct pool *pool) static void clear_sock(struct pool *pool)
{ {
SOCKETTYPE sock = pool->sock; SOCKETTYPE sock = pool->sock;

Loading…
Cancel
Save