summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xmrstak/cli/cli-miner.cpp2
-rw-r--r--xmrstak/jconf.cpp6
2 files changed, 5 insertions, 3 deletions
diff --git a/xmrstak/cli/cli-miner.cpp b/xmrstak/cli/cli-miner.cpp
index c15ca56..f571ad6 100644
--- a/xmrstak/cli/cli-miner.cpp
+++ b/xmrstak/cli/cli-miner.cpp
@@ -255,7 +255,7 @@ int main(int argc, char *argv[])
#elif defined(CONF_NO_MONERO)
tmp = "aeon";
#endif
- while(xmrstak::strcmp_i(tmp, "monero") && xmrstak::strcmp_i(tmp, "aeon"))
+ while(!xmrstak::strcmp_i(tmp, "monero") && !xmrstak::strcmp_i(tmp, "aeon"))
{
std::cout<<"- currency: 'monero' or 'aeon'"<<std::endl;
std::cin >> tmp;
diff --git a/xmrstak/jconf.cpp b/xmrstak/jconf.cpp
index 5ada0d6..4b23ed5 100644
--- a/xmrstak/jconf.cpp
+++ b/xmrstak/jconf.cpp
@@ -159,13 +159,15 @@ const std::string jconf::GetCurrency()
currency = prv->configValues[sCurrency]->GetString();
if(
#ifndef CONF_NO_MONERO
- xmrstak::strcmp_i(currency, "monero")
+ // if monero is disabled at compile time, enable error message if selected currency is `monero`
+ !xmrstak::strcmp_i(currency, "monero")
#else
true
#endif
&&
#ifndef CONF_NO_AEON
- xmrstak::strcmp_i(currency, "aeon")
+ // if aeon is disabled at compile time, enable error message if selected currency is `aeon`
+ !xmrstak::strcmp_i(currency, "aeon")
#else
true
#endif
OpenPOWER on IntegriCloud