Browse Source

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

Silences gcc warning.
build-mingw
Noel Maersk 11 years ago
parent
commit
10ec7769c8
  1. 2
      sgminer.c

2
sgminer.c

@ -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…
Cancel
Save