Fixed cppcheck errors

This commit is contained in:
SChernykh 2023-04-14 11:05:47 +02:00
parent 9368b96129
commit 6ef166ba33
3 changed files with 3 additions and 3 deletions

View file

@ -80,7 +80,7 @@ static FORCEINLINE bool less32(const uint8_t* k0, const uint8_t* k1)
return false;
}
// cppcheck-suppress constParameter
// cppcheck-suppress constParameterReference
void generate_keys(hash& pub, hash& sec)
{
do {

View file

@ -24,7 +24,7 @@ void p2pool_usage();
namespace p2pool {
Params::Params(int argc, char* argv[])
Params::Params(int argc, char* const argv[])
{
for (int i = 1; i < argc; ++i) {
bool ok = false;

View file

@ -23,7 +23,7 @@ namespace p2pool {
struct Params
{
Params(int argc, char* argv[]);
Params(int argc, char* const argv[]);
bool valid() const;