diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-02-22 11:48:35 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-02-22 11:48:45 +0100 |
commit | 92dd6c8dfdd6417d2e7c0ca9846b5c0dca50f5d8 (patch) | |
tree | 8313ba54e12e39876ba87205635fa39fe07f1a34 /src | |
parent | 5628c70f2a44567695e5331fe2293c5b7f35b629 (diff) | |
parent | a87d02adad2d566927136694dc0d7b202d72691d (diff) |
Merge #9815: Trivial: use EXIT_ codes instead of magic numbers
a87d02a use EXIT_ codes instead of magic numbers (Marko Bencun)
Diffstat (limited to 'src')
-rw-r--r-- | src/bitcoind.cpp | 6 | ||||
-rw-r--r-- | src/test/test_bitcoin.cpp | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/bitcoind.cpp b/src/bitcoind.cpp index 9bab3a2026..a3d02afcdb 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)) { diff --git a/src/test/test_bitcoin.cpp b/src/test/test_bitcoin.cpp index 4785415e3c..51fc6ae0ba 100644 --- a/src/test/test_bitcoin.cpp +++ b/src/test/test_bitcoin.cpp @@ -156,12 +156,12 @@ CTxMemPoolEntry TestMemPoolEntryHelper::FromTx(const CTransaction &txn, CTxMemPo void Shutdown(void* parg) { - exit(0); + exit(EXIT_SUCCESS); } void StartShutdown() { - exit(0); + exit(EXIT_SUCCESS); } bool ShutdownRequested() |