code cleaning

master
moneroexamples 9 years ago
parent e225e82cd7
commit d2a53ed3b8

@ -27,7 +27,7 @@ int main(int ac, const char* av[]) {
// if help was chosen, display help text and finish // if help was chosen, display help text and finish
if (*help_opt) if (*help_opt)
{ {
return 0; return EXIT_SUCCESS;
} }
auto port_opt = opts.get_option<string>("port"); auto port_opt = opts.get_option<string>("port");
@ -44,7 +44,7 @@ int main(int ac, const char* av[]) {
if (!xmreg::get_blockchain_path(bc_path_opt, blockchain_path)) if (!xmreg::get_blockchain_path(bc_path_opt, blockchain_path))
{ {
cerr << "Error getting blockchain path." << endl; cerr << "Error getting blockchain path." << endl;
return 1; return EXIT_FAILURE;
} }
// enable basic monero log output // enable basic monero log output
@ -60,7 +60,7 @@ int main(int ac, const char* av[]) {
mcore, core_storage)) mcore, core_storage))
{ {
cerr << "Error accessing blockchain." << endl; cerr << "Error accessing blockchain." << endl;
return 1; return EXIT_FAILURE;
} }
// create instance of page class which // create instance of page class which
@ -116,5 +116,5 @@ int main(int ac, const char* av[]) {
// run the crow http server // run the crow http server
app.port(app_port).multithreaded().run(); app.port(app_port).multithreaded().run();
return 0; return EXIT_SUCCESS;
} }

Loading…
Cancel
Save