Browse Source

Fixed missing realloc removed by mistake.

Conflicts (resolved):
	sgminer.c
nfactor-troky
troky 11 years ago committed by Noel Maersk
parent
commit
e0c380a2c9
  1. 2
      sgminer.c

2
sgminer.c

@ -518,7 +518,7 @@ struct pool *add_pool(void) @@ -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)))

Loading…
Cancel
Save