Skip to content

Commit 0c8875d

Browse files
committed
Merge #8163: Do not shadow global RPC table variable (tableRPC)
de1bbe3 Do not shadow global RPC table variable (tableRPC) (Pavel Janík)
2 parents f256843 + de1bbe3 commit 0c8875d

File tree

8 files changed

+19
-19
lines changed

8 files changed

+19
-19
lines changed

src/rpc/blockchain.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,8 +1205,8 @@ static const CRPCCommand commands[] =
12051205
{ "hidden", "reconsiderblock", &reconsiderblock, true },
12061206
};
12071207

1208-
void RegisterBlockchainRPCCommands(CRPCTable &tableRPC)
1208+
void RegisterBlockchainRPCCommands(CRPCTable &t)
12091209
{
12101210
for (unsigned int vcidx = 0; vcidx < ARRAYLEN(commands); vcidx++)
1211-
tableRPC.appendCommand(commands[vcidx].name, &commands[vcidx]);
1211+
t.appendCommand(commands[vcidx].name, &commands[vcidx]);
12121212
}

src/rpc/mining.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -919,8 +919,8 @@ static const CRPCCommand commands[] =
919919
{ "util", "estimatesmartpriority", &estimatesmartpriority, true },
920920
};
921921

922-
void RegisterMiningRPCCommands(CRPCTable &tableRPC)
922+
void RegisterMiningRPCCommands(CRPCTable &t)
923923
{
924924
for (unsigned int vcidx = 0; vcidx < ARRAYLEN(commands); vcidx++)
925-
tableRPC.appendCommand(commands[vcidx].name, &commands[vcidx]);
925+
t.appendCommand(commands[vcidx].name, &commands[vcidx]);
926926
}

src/rpc/misc.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,8 +498,8 @@ static const CRPCCommand commands[] =
498498
{ "hidden", "setmocktime", &setmocktime, true },
499499
};
500500

501-
void RegisterMiscRPCCommands(CRPCTable &tableRPC)
501+
void RegisterMiscRPCCommands(CRPCTable &t)
502502
{
503503
for (unsigned int vcidx = 0; vcidx < ARRAYLEN(commands); vcidx++)
504-
tableRPC.appendCommand(commands[vcidx].name, &commands[vcidx]);
504+
t.appendCommand(commands[vcidx].name, &commands[vcidx]);
505505
}

src/rpc/net.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -590,8 +590,8 @@ static const CRPCCommand commands[] =
590590
{ "network", "clearbanned", &clearbanned, true },
591591
};
592592

593-
void RegisterNetRPCCommands(CRPCTable &tableRPC)
593+
void RegisterNetRPCCommands(CRPCTable &t)
594594
{
595595
for (unsigned int vcidx = 0; vcidx < ARRAYLEN(commands); vcidx++)
596-
tableRPC.appendCommand(commands[vcidx].name, &commands[vcidx]);
596+
t.appendCommand(commands[vcidx].name, &commands[vcidx]);
597597
}

src/rpc/rawtransaction.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -910,8 +910,8 @@ static const CRPCCommand commands[] =
910910
{ "blockchain", "verifytxoutproof", &verifytxoutproof, true },
911911
};
912912

913-
void RegisterRawTransactionRPCCommands(CRPCTable &tableRPC)
913+
void RegisterRawTransactionRPCCommands(CRPCTable &t)
914914
{
915915
for (unsigned int vcidx = 0; vcidx < ARRAYLEN(commands); vcidx++)
916-
tableRPC.appendCommand(commands[vcidx].name, &commands[vcidx]);
916+
t.appendCommand(commands[vcidx].name, &commands[vcidx]);
917917
}

src/rpc/register.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ void RegisterMiningRPCCommands(CRPCTable &tableRPC);
2020
/** Register raw transaction RPC commands */
2121
void RegisterRawTransactionRPCCommands(CRPCTable &tableRPC);
2222

23-
static inline void RegisterAllCoreRPCCommands(CRPCTable &tableRPC)
23+
static inline void RegisterAllCoreRPCCommands(CRPCTable &t)
2424
{
25-
RegisterBlockchainRPCCommands(tableRPC);
26-
RegisterNetRPCCommands(tableRPC);
27-
RegisterMiscRPCCommands(tableRPC);
28-
RegisterMiningRPCCommands(tableRPC);
29-
RegisterRawTransactionRPCCommands(tableRPC);
25+
RegisterBlockchainRPCCommands(t);
26+
RegisterNetRPCCommands(t);
27+
RegisterMiscRPCCommands(t);
28+
RegisterMiningRPCCommands(t);
29+
RegisterRawTransactionRPCCommands(t);
3030
}
3131

3232
#endif

src/wallet/rpcwallet.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2617,8 +2617,8 @@ static const CRPCCommand commands[] =
26172617
{ "wallet", "removeprunedfunds", &removeprunedfunds, true },
26182618
};
26192619

2620-
void RegisterWalletRPCCommands(CRPCTable &tableRPC)
2620+
void RegisterWalletRPCCommands(CRPCTable &t)
26212621
{
26222622
for (unsigned int vcidx = 0; vcidx < ARRAYLEN(commands); vcidx++)
2623-
tableRPC.appendCommand(commands[vcidx].name, &commands[vcidx]);
2623+
t.appendCommand(commands[vcidx].name, &commands[vcidx]);
26242624
}

src/wallet/rpcwallet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77

88
class CRPCTable;
99

10-
void RegisterWalletRPCCommands(CRPCTable &tableRPC);
10+
void RegisterWalletRPCCommands(CRPCTable &t);
1111

1212
#endif //BITCOIN_WALLET_RPCWALLET_H

0 commit comments

Comments
 (0)