1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

pool: don't pass unused argument to sprintf() in add_pool().

Silences gcc warning.
This commit is contained in:
Noel Maersk 2014-03-26 17:49:32 +02:00
parent ac3d13880c
commit 10ec7769c8

View File

@ -533,7 +533,7 @@ struct pool *add_pool(void)
/* Default pool name */ /* Default pool name */
char buf[32]; char buf[32];
sprintf(buf, "", pool->pool_no); sprintf(buf, "");
pool->name = strdup(buf); pool->name = strdup(buf);
pools = (struct pool **)realloc(pools, sizeof(struct pool *) * (total_pools + 2)); pools = (struct pool **)realloc(pools, sizeof(struct pool *) * (total_pools + 2));