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:
parent
ac3d13880c
commit
10ec7769c8
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user