Browse Source

config: add `const` qualifier to set_pool_{algorithm,nfactor}().

MSVS doesn't like implicit casting.
refactor
Noel Maersk 11 years ago
parent
commit
aa5f4c713b
  1. 4
      sgminer.c

4
sgminer.c

@ -781,7 +781,7 @@ static char *set_url(char *arg) @@ -781,7 +781,7 @@ static char *set_url(char *arg)
}
static char *set_pool_algorithm(char *arg)
static char *set_pool_algorithm(const char *arg)
{
struct pool *pool = get_current_pool();
@ -791,7 +791,7 @@ static char *set_pool_algorithm(char *arg) @@ -791,7 +791,7 @@ static char *set_pool_algorithm(char *arg)
return NULL;
}
static char *set_pool_nfactor(char *arg)
static char *set_pool_nfactor(const char *arg)
{
struct pool *pool = get_current_pool();

Loading…
Cancel
Save