aboutsummaryrefslogtreecommitdiff
path: root/src/rpcclient.cpp
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@bitpay.com>2014-06-12 22:26:46 -0400
committerWladimir J. van der Laan <laanwj@gmail.com>2014-06-15 14:47:04 +0200
commit0cafb630254c6459ea02f6fc47e1c37bb81a1238 (patch)
tree8b27f5b0205f1af20568f917b052a42d9c54fe86 /src/rpcclient.cpp
parent8615bfb486d9b9fa24ca038fa078b8ccb1f2f180 (diff)
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>
Diffstat (limited to 'src/rpcclient.cpp')
-rw-r--r--src/rpcclient.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcclient.cpp b/src/rpcclient.cpp
index b89a95ad11..1a5b3f7412 100644
--- a/src/rpcclient.cpp
+++ b/src/rpcclient.cpp
@@ -234,7 +234,7 @@ int CommandLineRPC(int argc, char *argv[])
}
catch (std::exception& e) {
strPrint = string("error: ") + e.what();
- nRet = abs(RPC_MISC_ERROR);
+ nRet = EXIT_FAILURE;
}
catch (...) {
PrintExceptionContinue(NULL, "CommandLineRPC()");