Merge #9815: Trivial: use EXIT_ codes instead of magic numbers

a87d02a use EXIT_ codes instead of magic numbers (Marko Bencun)
This commit is contained in:
Wladimir J. van der Laan 2017-02-22 11:48:35 +01:00
commit 92dd6c8dfd
No known key found for this signature in database
GPG key ID: 74810B012346C9A6
2 changed files with 5 additions and 5 deletions

View file

@ -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))
{

View file

@ -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()