mirror of
https://github.com/GOSTSec/sgminer
synced 2025-08-26 13:52:02 +00:00
config: add const
qualifier to set_pool_{algorithm,nfactor}().
MSVS doesn't like implicit casting.
This commit is contained in:
parent
7051629232
commit
aa5f4c713b
12
sgminer.c
12
sgminer.c
@ -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();
|
struct pool *pool = get_current_pool();
|
||||||
|
|
||||||
@ -791,7 +791,7 @@ static char *set_pool_algorithm(char *arg)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *set_pool_nfactor(char *arg)
|
static char *set_pool_nfactor(const char *arg)
|
||||||
{
|
{
|
||||||
struct pool *pool = get_current_pool();
|
struct pool *pool = get_current_pool();
|
||||||
|
|
||||||
@ -1436,11 +1436,11 @@ static struct opt_table opt_config_table[] = {
|
|||||||
set_url, NULL, NULL,
|
set_url, NULL, NULL,
|
||||||
"URL for bitcoin JSON-RPC server"),
|
"URL for bitcoin JSON-RPC server"),
|
||||||
OPT_WITH_ARG("--pool-algorithm",
|
OPT_WITH_ARG("--pool-algorithm",
|
||||||
set_pool_algorithm, NULL, NULL,
|
set_pool_algorithm, NULL, NULL,
|
||||||
"Set algorithm for pool"),
|
"Set algorithm for pool"),
|
||||||
OPT_WITH_ARG("--pool-nfactor",
|
OPT_WITH_ARG("--pool-nfactor",
|
||||||
set_pool_nfactor, NULL, NULL,
|
set_pool_nfactor, NULL, NULL,
|
||||||
"Set N-factor for pool"),
|
"Set N-factor for pool"),
|
||||||
OPT_WITH_ARG("--user|-u",
|
OPT_WITH_ARG("--user|-u",
|
||||||
set_user, NULL, NULL,
|
set_user, NULL, NULL,
|
||||||
"Username for bitcoin JSON-RPC server"),
|
"Username for bitcoin JSON-RPC server"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user