Skip to content

Commit

Permalink
Fix missing or inconsistent include guards
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalswift authored and str4d committed Oct 27, 2020
1 parent 653846b commit 4ddfb21
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 25 deletions.
6 changes: 3 additions & 3 deletions src/bench/perf.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

/** Functions for measurement of CPU cycles */
#ifndef H_PERF
#define H_PERF
#ifndef BITCOIN_BENCH_PERF_H
#define BITCOIN_BENCH_PERF_H

#include <stdint.h>

Expand Down Expand Up @@ -34,4 +34,4 @@ uint64_t perf_cpucycles(void);
void perf_init(void);
void perf_fini(void);

#endif // H_PERF
#endif // BITCOIN_BENCH_PERF_H
6 changes: 3 additions & 3 deletions src/key_io.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or https://www.opensource.org/licenses/mit-license.php .

#ifndef BITCOIN_KEYIO_H
#define BITCOIN_KEYIO_H
#ifndef BITCOIN_KEY_IO_H
#define BITCOIN_KEY_IO_H

#include <chainparams.h>
#include <key.h>
Expand Down Expand Up @@ -47,4 +47,4 @@ class KeyIO {
libzcash::SpendingKey DecodeSpendingKey(const std::string& str);
};

#endif // BITCOIN_KEYIO_H
#endif // BITCOIN_KEY_IO_H
6 changes: 3 additions & 3 deletions src/policy/fees.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Copyright (c) 2009-2015 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or https://www.opensource.org/licenses/mit-license.php .
#ifndef BITCOIN_POLICYESTIMATOR_H
#define BITCOIN_POLICYESTIMATOR_H
#ifndef BITCOIN_POLICY_FEES_H
#define BITCOIN_POLICY_FEES_H

#include "amount.h"
#include "uint256.h"
Expand Down Expand Up @@ -280,4 +280,4 @@ class CBlockPolicyEstimator
CFeeRate feeLikely, feeUnlikely;
double priLikely, priUnlikely;
};
#endif /*BITCOIN_POLICYESTIMATOR_H */
#endif // BITCOIN_POLICY_FEES_H
6 changes: 3 additions & 3 deletions src/rpc/client.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or https://www.opensource.org/licenses/mit-license.php .

#ifndef BITCOIN_RPCCLIENT_H
#define BITCOIN_RPCCLIENT_H
#ifndef BITCOIN_RPC_CLIENT_H
#define BITCOIN_RPC_CLIENT_H

#include <univalue.h>

Expand All @@ -14,4 +14,4 @@ UniValue RPCConvertValues(const std::string& strMethod, const std::vector<std::s
*/
UniValue ParseNonRFCJSONValue(const std::string& strVal);

#endif // BITCOIN_RPCCLIENT_H
#endif // BITCOIN_RPC_CLIENT_H
6 changes: 3 additions & 3 deletions src/rpc/protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or https://www.opensource.org/licenses/mit-license.php .

#ifndef BITCOIN_RPCPROTOCOL_H
#define BITCOIN_RPCPROTOCOL_H
#ifndef BITCOIN_RPC_PROTOCOL_H
#define BITCOIN_RPC_PROTOCOL_H

#include "fs.h"

Expand Down Expand Up @@ -91,4 +91,4 @@ bool GetAuthCookie(std::string *cookie_out);
/** Delete RPC authentication cookie from disk */
void DeleteAuthCookie();

#endif // BITCOIN_RPCPROTOCOL_H
#endif // BITCOIN_RPC_PROTOCOL_H
6 changes: 3 additions & 3 deletions src/rpc/register.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or https://www.opensource.org/licenses/mit-license.php .

#ifndef BITCOIN_RPCREGISTER_H
#define BITCOIN_RPCREGISTER_H
#ifndef BITCOIN_RPC_REGISTER_H
#define BITCOIN_RPC_REGISTER_H

/** These are in one header file to avoid creating tons of single-function
* headers for everything under src/rpc/ */
Expand All @@ -29,4 +29,4 @@ static inline void RegisterAllCoreRPCCommands(CRPCTable &tableRPC)
RegisterRawTransactionRPCCommands(tableRPC);
}

#endif
#endif // BITCOIN_RPC_REGISTER_H
6 changes: 3 additions & 3 deletions src/rpc/server.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or https://www.opensource.org/licenses/mit-license.php .

#ifndef BITCOIN_RPCSERVER_H
#define BITCOIN_RPCSERVER_H
#ifndef BITCOIN_RPC_SERVER_H
#define BITCOIN_RPC_SERVER_H

#include "amount.h"
#include "rpc/protocol.h"
Expand Down Expand Up @@ -188,4 +188,4 @@ extern std::string experimentalDisabledHelpMsg(const std::string& rpc, const std
extern int interpretHeightArg(int nHeight, int currentHeight);
extern int parseHeightArg(const std::string& strHeight, int currentHeight);

#endif // BITCOIN_RPCSERVER_H
#endif // BITCOIN_RPC_SERVER_H
7 changes: 3 additions & 4 deletions src/wallet/test/wallet_test_fixture.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef BITCOIN_WALLET_TEST_FIXTURE_H
#define BITCOIN_WALLET_TEST_FIXTURE_H
#ifndef BITCOIN_WALLET_TEST_WALLET_TEST_FIXTURE_H
#define BITCOIN_WALLET_TEST_WALLET_TEST_FIXTURE_H

#include "test/test_bitcoin.h"

Expand All @@ -14,5 +14,4 @@ struct WalletTestingSetup: public TestingSetup {
~WalletTestingSetup();
};

#endif

#endif // BITCOIN_WALLET_TEST_WALLET_TEST_FIXTURE_H

0 comments on commit 4ddfb21

Please sign in to comment.