1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-22 20:44:19 +00:00

Avoid redefining macros and align to 4 byte boundaries.

This commit is contained in:
Con Kolivas 2012-10-22 22:06:00 +11:00
parent 617ee96826
commit e575763a80
2 changed files with 2 additions and 5 deletions

View File

@ -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;

3
util.c
View File

@ -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;