Skip to content

Commit

Permalink
Merge #13163: Make it clear which functions that are intended to be t…
Browse files Browse the repository at this point in the history
…ranslation unit local (bitcoin-cli.cpp)

Summary:
c3f34d06be Make it clear which functions that are intended to be translation unit local (practicalswift)

Pull request description:

  Make it clear which functions that are intended to be translation unit local.

  Do not share functions that are meant to be translation unit local with other translation units. Use internal linkage for those consistently.

Tree-SHA512: 05eebd233d5cfbf6116724eec3a99b465bf534ca220f2b6f5e56341a7da41387454d3cb6ceadd8ab6714a5df94069e4ad0dcab8801ccc7e8949be7199a19fb53

Partial Backport of Core PR13163 (bitcoin-cli.cpp)
bitcoin/bitcoin#13163

Part of breaking up D3239

Test Plan:
  make check

Reviewers: O1 Bitcoin ABC, #bitcoin_abc, jasonbcox, deadalnix, Fabien

Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D3525
  • Loading branch information
Nico Guiton committed Jul 2, 2019
1 parent eb2266b commit 7733c03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bitcoin-cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ struct HTTPReply {
std::string body;
};

const char *http_errorstring(int code) {
static const char *http_errorstring(int code) {
switch (code) {
#if LIBEVENT_VERSION_NUMBER >= 0x02010300
case EVREQ_HTTP_TIMEOUT:
Expand Down Expand Up @@ -472,7 +472,7 @@ static UniValue CallRPC(BaseRequestHandler *rh, const std::string &strMethod,
return reply;
}

int CommandLineRPC(int argc, char *argv[]) {
static int CommandLineRPC(int argc, char *argv[]) {
std::string strPrint;
int nRet = 0;
try {
Expand Down

0 comments on commit 7733c03

Please sign in to comment.