From e0c380a2c949e5c134f3d47fa1fa442eb46cbfe6 Mon Sep 17 00:00:00 2001 From: troky Date: Tue, 28 Jan 2014 22:26:01 +0100 Subject: [PATCH] Fixed missing realloc removed by mistake. Conflicts (resolved): sgminer.c --- sgminer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sgminer.c b/sgminer.c index a7dd3ab3..08697cd0 100644 --- a/sgminer.c +++ b/sgminer.c @@ -518,7 +518,7 @@ struct pool *add_pool(void) sprintf(buf, "Pool %d", pool->pool_no); pool->poolname = strdup(buf); - pools = realloc(pools, sizeof(struct pool *) * (total_pools + 2)); + pools = (struct pool **)realloc(pools, sizeof(struct pool *) * (total_pools + 2)); pools[total_pools++] = pool; mutex_init(&pool->pool_lock); if (unlikely(pthread_cond_init(&pool->cr_cond, NULL)))