mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
bitcoin-cli, rpcclient: prefer EXIT_FAILURE cstdlib constant
A more complex construction via abs() yields the same end result. Rebased-From: 34ff109 Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com>
This commit is contained in:
parent
8615bfb486
commit
0cafb63025
2 changed files with 5 additions and 5 deletions
|
|
@ -65,17 +65,17 @@ int main(int argc, char* argv[])
|
|||
try
|
||||
{
|
||||
if(!AppInitRPC(argc, argv))
|
||||
return abs(RPC_MISC_ERROR);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
catch (std::exception& e) {
|
||||
PrintExceptionContinue(&e, "AppInitRPC()");
|
||||
return abs(RPC_MISC_ERROR);
|
||||
return EXIT_FAILURE;
|
||||
} catch (...) {
|
||||
PrintExceptionContinue(NULL, "AppInitRPC()");
|
||||
return abs(RPC_MISC_ERROR);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
int ret = abs(RPC_MISC_ERROR);
|
||||
int ret = EXIT_FAILURE;
|
||||
try
|
||||
{
|
||||
ret = CommandLineRPC(argc, argv);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue