Skip to content

Commit

Permalink
clang-tidy: remove void
Browse files Browse the repository at this point in the history
Found with modernize-redundant-void-arg

Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb committed Jan 9, 2024
1 parent 15c143f commit df8248c
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion modules/godbcbackend/sodbc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ SODBC::SODBC(
}

// Destructor.
SODBC::~SODBC(void)
SODBC::~SODBC()
{
// Disconnect from database and free all used resources.
// SQLFreeHandle( SQL_HANDLE_STMT, m_statement );
Expand Down
2 changes: 1 addition & 1 deletion modules/godbcbackend/sodbc.hh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public:
const std::string& password);

//! Destructor.
virtual ~SODBC(void);
virtual ~SODBC();

//! Sets the logging state.
void setLog(bool state) override;
Expand Down
14 changes: 7 additions & 7 deletions pdns/dnsrecords.hh
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ private:
class NSECRecordContent : public DNSRecordContent
{
public:
static void report(void);
static void report();
NSECRecordContent() = default;
NSECRecordContent(const string& content, const DNSName& zone=DNSName());

Expand Down Expand Up @@ -737,7 +737,7 @@ private:
class NSEC3RecordContent : public DNSRecordContent
{
public:
static void report(void);
static void report();
NSEC3RecordContent() = default;
NSEC3RecordContent(const string& content, const DNSName& zone=DNSName());

Expand Down Expand Up @@ -783,7 +783,7 @@ private:
class CSYNCRecordContent : public DNSRecordContent
{
public:
static void report(void);
static void report();
CSYNCRecordContent() = default;
CSYNCRecordContent(const string& content, const DNSName& zone=DNSName());

Expand Down Expand Up @@ -811,7 +811,7 @@ private:
class NSEC3PARAMRecordContent : public DNSRecordContent
{
public:
static void report(void);
static void report();
NSEC3PARAMRecordContent() = default;
NSEC3PARAMRecordContent(const string& content, const DNSName& zone=DNSName());

Expand All @@ -835,7 +835,7 @@ public:
class LOCRecordContent : public DNSRecordContent
{
public:
static void report(void);
static void report();
LOCRecordContent() = default;
LOCRecordContent(const string& content, const string& zone="");

Expand Down Expand Up @@ -899,7 +899,7 @@ class EUI48RecordContent : public DNSRecordContent
{
public:
EUI48RecordContent() = default;
static void report(void);
static void report();
static std::shared_ptr<DNSRecordContent> make(const DNSRecord &dr, PacketReader& pr);
static std::shared_ptr<DNSRecordContent> make(const string& zone); // FIXME400: DNSName& zone?
string getZoneRepresentation(bool noDot=false) const override;
Expand All @@ -914,7 +914,7 @@ class EUI64RecordContent : public DNSRecordContent
{
public:
EUI64RecordContent() = default;
static void report(void);
static void report();
static std::shared_ptr<DNSRecordContent> make(const DNSRecord &dr, PacketReader& pr);
static std::shared_ptr<DNSRecordContent> make(const string& zone); // FIXME400: DNSName& zone?
string getZoneRepresentation(bool noDot=false) const override;
Expand Down
2 changes: 1 addition & 1 deletion pdns/tcpreceiver.hh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private:
static bool canDoAXFR(std::unique_ptr<DNSPacket>& q, bool isAXFR, std::unique_ptr<PacketHandler>& packetHandler);
static void doConnection(int fd);
static void decrementClientCount(const ComboAddress& remote);
void thread(void);
void thread();
static LockGuarded<std::map<ComboAddress,size_t,ComboAddress::addressOnlyLessThan>> s_clientsCount;
static LockGuarded<std::unique_ptr<PacketHandler>> s_P;
static std::unique_ptr<Semaphore> d_connectionroom_sem;
Expand Down
10 changes: 5 additions & 5 deletions pdns/utility.hh
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,16 @@ public:
Semaphore( unsigned int value = 0 );

//! Destructor.
~Semaphore( void );
~Semaphore();

//! Posts to a semaphore.
int post( void );
int post();

//! Waits for a semaphore.
int wait( void );
int wait();

//! Tries to wait for a semaphore.
int tryWait( void );
int tryWait();

//! Retrieves the semaphore value.
int getValue( Semaphore::sem_value_t *sval );
Expand All @@ -104,7 +104,7 @@ public:
int timeout_usec);

//! Returns the process id of the current process.
static pid_t getpid( void );
static pid_t getpid();

//! Gets the current time.
static int gettimeofday( struct timeval *tv, void *tz = NULL );
Expand Down

0 comments on commit df8248c

Please sign in to comment.