changeset 26690:d3c8c10771a2

Merge #9815: Trivial: use EXIT_ codes instead of magic numbers a87d02a use EXIT_ codes instead of magic numbers (Marko Bencun)
author Wladimir J. van der Laan <laanwj@gmail.com>
date Wed, 22 Feb 2017 11:48:35 +0100
parents 1f6bc438ff70 a5c62a5294ee
children 5a5e1b139c1a
files
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/bitcoind.cpp	Wed Feb 22 00:05:02 2017 +0100
+++ b/src/bitcoind.cpp	Wed Feb 22 11:48:35 2017 +0100
@@ -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	Wed Feb 22 00:05:02 2017 +0100
+++ b/src/test/test_bitcoin.cpp	Wed Feb 22 11:48:35 2017 +0100
@@ -156,12 +156,12 @@
 
 void Shutdown(void* parg)
 {
-  exit(0);
+  exit(EXIT_SUCCESS);
 }
 
 void StartShutdown()
 {
-  exit(0);
+  exit(EXIT_SUCCESS);
 }
 
 bool ShutdownRequested()