changeset 26689:a5c62a5294ee

use EXIT_ codes instead of magic numbers To be consistent with other exit() calls.
author Marko Bencun <marko.bencun@monetas.net>
date Tue, 21 Feb 2017 17:16:25 +0900
parents 6fdb3347bb36
children d3c8c10771a2
files src/bitcoind.cpp src/test/test_bitcoin.cpp
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/bitcoind.cpp	Mon Feb 20 17:49:47 2017 +0100
+++ b/src/bitcoind.cpp	Tue Feb 21 17:16:25 2017 +0900
@@ -136,17 +136,17 @@
         if (!AppInitBasicSetup())
         {
             // InitError will have been called with detailed error, which ends up on console
-            exit(1);
+            exit(EXIT_FAILURE);
         }
         if (!AppInitParameterInteraction())
         {
             // InitError will have been called with detailed error, which ends up on console
-            exit(1);
+            exit(EXIT_FAILURE);
         }
         if (!AppInitSanityChecks())
         {
             // InitError will have been called with detailed error, which ends up on console
-            exit(1);
+            exit(EXIT_FAILURE);
         }
         if (GetBoolArg("-daemon", false))
         {
--- a/src/test/test_bitcoin.cpp	Mon Feb 20 17:49:47 2017 +0100
+++ b/src/test/test_bitcoin.cpp	Tue Feb 21 17:16:25 2017 +0900
@@ -156,12 +156,12 @@
 
 void Shutdown(void* parg)
 {
-  exit(0);
+  exit(EXIT_SUCCESS);
 }
 
 void StartShutdown()
 {
-  exit(0);
+  exit(EXIT_SUCCESS);
 }
 
 bool ShutdownRequested()