diff options
author | UdjinM6 <UdjinM6@dash.org> | 2016-11-07 21:31:38 +0300 |
---|---|---|
committer | UdjinM6 <UdjinM6@dash.org> | 2016-11-07 21:31:38 +0300 |
commit | 4441018d0860fce64ee74fa78da79bbb21114ca9 (patch) | |
tree | a3e87ce98e3775e72203392e9eb204f12e4c91b8 /src/bitcoind.cpp | |
parent | bd0de1386e1c7f9b875d52290de0d561c8d56bc9 (diff) |
Every main()/exit() should return/use one of EXIT_ codes instead of magic numbers
Diffstat (limited to 'src/bitcoind.cpp')
-rw-r--r-- | src/bitcoind.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bitcoind.cpp b/src/bitcoind.cpp index a0d0393594..3352a76de6 100644 --- a/src/bitcoind.cpp +++ b/src/bitcoind.cpp @@ -126,7 +126,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); } if (GetBoolArg("-daemon", false)) { @@ -177,5 +177,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); } |