Every main()/exit() should return/use one of EXIT_ codes instead of magic numbers

Github-Pull: #9067
Rebased-From: 4441018d0860fce64ee74fa78da79bbb21114ca9
This commit is contained in:
UdjinM6
2016-11-07 21:31:38 +03:00
committed by Luke Dashjr
parent f85ee01303
commit f27596a7ec
2 changed files with 9 additions and 9 deletions

View File

@@ -127,7 +127,7 @@ bool AppInit(int argc, char* argv[])
if (fCommandLine)
{
fprintf(stderr, "Error: There is no RPC client functionality in bitcoind anymore. Use the bitcoin-cli utility instead.\n");
exit(1);
exit(EXIT_FAILURE);
}
#ifndef WIN32
fDaemon = GetBoolArg("-daemon", false);
@@ -187,5 +187,5 @@ int main(int argc, char* argv[])
// Connect bitcoind signal handlers
noui_connect();
return (AppInit(argc, argv) ? 0 : 1);
return (AppInit(argc, argv) ? EXIT_SUCCESS : EXIT_FAILURE);
}