aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoind.cpp
diff options
context:
space:
mode:
authorMarko Bencun <[email protected]>2017-02-21 17:16:25 +0900
committerMarko Bencun <[email protected]>2017-02-21 17:17:24 +0900
commita87d02adad2d566927136694dc0d7b202d72691d (patch)
treedace8ddd009d1d9242d638e41adee9def23c38bc /src/bitcoind.cpp
parentMerge #9726: netbase: Do not print an error on connection timeouts through proxy (diff)
downloaddiscoin-a87d02adad2d566927136694dc0d7b202d72691d.tar.xz
discoin-a87d02adad2d566927136694dc0d7b202d72691d.zip
use EXIT_ codes instead of magic numbers
To be consistent with other exit() calls.
Diffstat (limited to 'src/bitcoind.cpp')
-rw-r--r--src/bitcoind.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bitcoind.cpp b/src/bitcoind.cpp
index 9bab3a202..a3d02afcd 100644
--- a/src/bitcoind.cpp
+++ b/src/bitcoind.cpp
@@ -136,17 +136,17 @@ bool AppInit(int argc, char* argv[])
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))
{