Browse Source

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

pull/4/head
UdjinM6 8 years ago
committed by Jack Grigg
parent
commit
c06245c1e3
No known key found for this signature in database GPG Key ID: 665DBCD284F7DAFF
  1. 4
      src/bitcoind.cpp

4
src/bitcoind.cpp

@ -138,7 +138,7 @@ bool AppInit(int argc, char* argv[])
if (fCommandLine)
{
fprintf(stderr, "Error: There is no RPC client functionality in zcashd. Use the zcash-cli utility instead.\n");
exit(1);
exit(EXIT_FAILURE);
}
#ifndef WIN32
fDaemon = GetBoolArg("-daemon", false);
@ -195,5 +195,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);
}

Loading…
Cancel
Save