Small code cleanups.

This commit is contained in:
XMRig 2019-02-25 15:54:21 +07:00
parent a5dcd6dd1f
commit 948f23c7d9
3 changed files with 4 additions and 3 deletions

View file

@ -55,7 +55,7 @@ xmrig::App::App(Process *process) :
m_httpd(nullptr), m_httpd(nullptr),
m_signals(nullptr) m_signals(nullptr)
{ {
m_controller = new xmrig::Controller(process); m_controller = new Controller(process);
if (m_controller->init() != 0) { if (m_controller->init() != 0) {
return; return;
} }
@ -178,7 +178,7 @@ void xmrig::App::onSignal(int signum)
break; break;
default: default:
break; return;
} }
close(); close();

View file

@ -113,6 +113,7 @@ static AlgoData const xmrStakAlgorithms[] = {
{ "cryptonight_alloy", nullptr, xmrig::CRYPTONIGHT, xmrig::VARIANT_XAO }, // xmr-stak-alloy { "cryptonight_alloy", nullptr, xmrig::CRYPTONIGHT, xmrig::VARIANT_XAO }, // xmr-stak-alloy
{ "cryptonight_turtle", nullptr, xmrig::CRYPTONIGHT_PICO, xmrig::VARIANT_TRTL }, { "cryptonight_turtle", nullptr, xmrig::CRYPTONIGHT_PICO, xmrig::VARIANT_TRTL },
{ "cryptonight_gpu", nullptr, xmrig::CRYPTONIGHT, xmrig::VARIANT_GPU }, { "cryptonight_gpu", nullptr, xmrig::CRYPTONIGHT, xmrig::VARIANT_GPU },
{ "cryptonight_r", nullptr, xmrig::CRYPTONIGHT, xmrig::VARIANT_4 },
}; };
#endif #endif

View file

@ -99,7 +99,7 @@ int xmrig::Controller::init()
{ {
Cpu::init(); Cpu::init();
d_ptr->config = xmrig::Config::load(d_ptr->process, this); d_ptr->config = Config::load(d_ptr->process, this);
if (!d_ptr->config) { if (!d_ptr->config) {
return 1; return 1;
} }