diff options
| author | Jeff Garzik <[email protected]> | 2011-07-12 20:22:38 -0700 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2011-07-12 20:22:38 -0700 |
| commit | 4ea952d5c03e18b9ddd0e97f4434cd9092358dab (patch) | |
| tree | f0f627dc9188eb11b02bed39ca66287ccd9634af /src/rpc.cpp | |
| parent | Update makefile.linux-mingw to work with crypter and UPnP fix. (diff) | |
| parent | fix warning: unused function 'SigIllHandlerSSE2' [-Wunused-function] (diff) | |
| download | discoin-4ea952d5c03e18b9ddd0e97f4434cd9092358dab.tar.xz discoin-4ea952d5c03e18b9ddd0e97f4434cd9092358dab.zip | |
Merge pull request #399 from muggenhor/warning-fixes
Warning fixes
Diffstat (limited to 'src/rpc.cpp')
| -rw-r--r-- | src/rpc.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rpc.cpp b/src/rpc.cpp index fbed626a8..4016d265c 100644 --- a/src/rpc.cpp +++ b/src/rpc.cpp @@ -706,7 +706,7 @@ int64 GetAccountBalance(const string& strAccount, int nMinDepth) Value getbalance(const Array& params, bool fHelp) { - if (fHelp || params.size() < 0 || params.size() > 2) + if (fHelp || params.size() > 2) throw runtime_error( "getbalance [account] [minconf=1]\n" "If [account] is not specified, returns the server's total available balance.\n" @@ -2419,7 +2419,6 @@ int CommandLineRPC(int argc, char *argv[]) // Parse reply const Value& result = find_value(reply, "result"); const Value& error = find_value(reply, "error"); - const Value& id = find_value(reply, "id"); if (error.type() != null_type) { |