mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-29 16:24:22 +00:00
use EXIT_ codes instead of magic numbers
To be consistent with other exit() calls.
This commit is contained in:
parent
7639d38f14
commit
a87d02adad
@ -136,17 +136,17 @@ bool AppInit(int argc, char* argv[])
|
|||||||
if (!AppInitBasicSetup())
|
if (!AppInitBasicSetup())
|
||||||
{
|
{
|
||||||
// InitError will have been called with detailed error, which ends up on console
|
// InitError will have been called with detailed error, which ends up on console
|
||||||
exit(1);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
if (!AppInitParameterInteraction())
|
if (!AppInitParameterInteraction())
|
||||||
{
|
{
|
||||||
// InitError will have been called with detailed error, which ends up on console
|
// InitError will have been called with detailed error, which ends up on console
|
||||||
exit(1);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
if (!AppInitSanityChecks())
|
if (!AppInitSanityChecks())
|
||||||
{
|
{
|
||||||
// InitError will have been called with detailed error, which ends up on console
|
// InitError will have been called with detailed error, which ends up on console
|
||||||
exit(1);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
if (GetBoolArg("-daemon", false))
|
if (GetBoolArg("-daemon", false))
|
||||||
{
|
{
|
||||||
|
@ -156,12 +156,12 @@ CTxMemPoolEntry TestMemPoolEntryHelper::FromTx(const CTransaction &txn, CTxMemPo
|
|||||||
|
|
||||||
void Shutdown(void* parg)
|
void Shutdown(void* parg)
|
||||||
{
|
{
|
||||||
exit(0);
|
exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
void StartShutdown()
|
void StartShutdown()
|
||||||
{
|
{
|
||||||
exit(0);
|
exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ShutdownRequested()
|
bool ShutdownRequested()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user