misc fixes to eliminate compiler warnings

This commit is contained in:
stoffu 2017-12-15 14:50:16 +09:00
parent 0186a57964
commit 8bbcfc9380
No known key found for this signature in database
GPG key ID: 41DAB8343A9EC012
3 changed files with 4 additions and 3 deletions

View file

@ -392,6 +392,7 @@ main(int ac, const char* av[])
return xmrblocks.show_checkrawtx(raw_tx_data, action); return xmrblocks.show_checkrawtx(raw_tx_data, action);
else if (action == "push") else if (action == "push")
return xmrblocks.show_pushrawtx(raw_tx_data, action); return xmrblocks.show_pushrawtx(raw_tx_data, action);
return string("Provided action is neither check nor push");
}); });
} }

View file

@ -58,7 +58,7 @@ MempoolStatus::start_mempool_status_thread()
else else
{ {
cout << "Current network info read, "; cout << "Current network info read, ";
loop_index == 0; loop_index = 0;
} }
} }

View file

@ -3129,7 +3129,7 @@ namespace xmreg
context["data_prefix"] = data_prefix; context["data_prefix"] = data_prefix;
if (!strncmp(decoded_raw_data.c_str(), KEY_IMAGE_EXPORT_FILE_MAGIC, magiclen) == 0) if (strncmp(decoded_raw_data.c_str(), KEY_IMAGE_EXPORT_FILE_MAGIC, magiclen) != 0)
{ {
string error_msg = fmt::format("This does not seem to be key image export data."); string error_msg = fmt::format("This does not seem to be key image export data.");
@ -3274,7 +3274,7 @@ namespace xmreg
context["data_prefix"] = data_prefix; context["data_prefix"] = data_prefix;
if (!strncmp(decoded_raw_data.c_str(), OUTPUT_EXPORT_FILE_MAGIC, magiclen) == 0) if (strncmp(decoded_raw_data.c_str(), OUTPUT_EXPORT_FILE_MAGIC, magiclen) != 0)
{ {
string error_msg = fmt::format("This does not seem to be output keys export data."); string error_msg = fmt::format("This does not seem to be output keys export data.");