From d2a53ed3b8fe1bfc797ea6a764eabd76f54c3082 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Sat, 7 May 2016 18:37:26 +0800 Subject: [PATCH] code cleaning --- main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.cpp b/main.cpp index 926630c..9bcaa6b 100644 --- a/main.cpp +++ b/main.cpp @@ -27,7 +27,7 @@ int main(int ac, const char* av[]) { // if help was chosen, display help text and finish if (*help_opt) { - return 0; + return EXIT_SUCCESS; } auto port_opt = opts.get_option("port"); @@ -44,7 +44,7 @@ int main(int ac, const char* av[]) { if (!xmreg::get_blockchain_path(bc_path_opt, blockchain_path)) { cerr << "Error getting blockchain path." << endl; - return 1; + return EXIT_FAILURE; } // enable basic monero log output @@ -60,7 +60,7 @@ int main(int ac, const char* av[]) { mcore, core_storage)) { cerr << "Error accessing blockchain." << endl; - return 1; + return EXIT_FAILURE; } // create instance of page class which @@ -116,5 +116,5 @@ int main(int ac, const char* av[]) { // run the crow http server app.port(app_port).multithreaded().run(); - return 0; + return EXIT_SUCCESS; }