From 480d44bd0bb8832f93add7a48e43117c02e2d92f Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Wed, 23 May 2012 23:20:07 -0400 Subject: [PATCH] rpcdump: include cleanup. move JSONRPCError def to bitcoinrpc.h. --- src/bitcoinrpc.h | 2 ++ src/rpcdump.cpp | 6 ------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/bitcoinrpc.h b/src/bitcoinrpc.h index 8b2d90517..7a8273756 100644 --- a/src/bitcoinrpc.h +++ b/src/bitcoinrpc.h @@ -13,6 +13,8 @@ #include "json/json_spirit_writer_template.h" #include "json/json_spirit_utils.h" +json_spirit::Object JSONRPCError(int code, const std::string& message); + void ThreadRPCServer(void* parg); int CommandLineRPC(int argc, char *argv[]); diff --git a/src/rpcdump.cpp b/src/rpcdump.cpp index 5fa24f638..6fb0e3556 100644 --- a/src/rpcdump.cpp +++ b/src/rpcdump.cpp @@ -8,18 +8,12 @@ #include -#include "json/json_spirit_reader_template.h" -#include "json/json_spirit_writer_template.h" -#include "json/json_spirit_utils.h" - #define printf OutputDebugStringF // using namespace boost::asio; using namespace json_spirit; using namespace std; -extern Object JSONRPCError(int code, const string& message); - class CTxDump { public: