diff --git a/modules/godbcbackend/sodbc.cc b/modules/godbcbackend/sodbc.cc index 19ca1c203e3d..79797ae5cffa 100644 --- a/modules/godbcbackend/sodbc.cc +++ b/modules/godbcbackend/sodbc.cc @@ -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 ); diff --git a/modules/godbcbackend/sodbc.hh b/modules/godbcbackend/sodbc.hh index 858967deca1b..cc01f6839515 100644 --- a/modules/godbcbackend/sodbc.hh +++ b/modules/godbcbackend/sodbc.hh @@ -55,7 +55,7 @@ public: const std::string& password); //! Destructor. - virtual ~SODBC(void); + virtual ~SODBC(); //! Sets the logging state. void setLog(bool state) override; diff --git a/pdns/dnsrecords.hh b/pdns/dnsrecords.hh index 1692d8795ad1..f61d915266f2 100644 --- a/pdns/dnsrecords.hh +++ b/pdns/dnsrecords.hh @@ -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()); @@ -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()); @@ -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()); @@ -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()); @@ -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=""); @@ -899,7 +899,7 @@ class EUI48RecordContent : public DNSRecordContent { public: EUI48RecordContent() = default; - static void report(void); + static void report(); static std::shared_ptr make(const DNSRecord &dr, PacketReader& pr); static std::shared_ptr make(const string& zone); // FIXME400: DNSName& zone? string getZoneRepresentation(bool noDot=false) const override; @@ -914,7 +914,7 @@ class EUI64RecordContent : public DNSRecordContent { public: EUI64RecordContent() = default; - static void report(void); + static void report(); static std::shared_ptr make(const DNSRecord &dr, PacketReader& pr); static std::shared_ptr make(const string& zone); // FIXME400: DNSName& zone? string getZoneRepresentation(bool noDot=false) const override; diff --git a/pdns/tcpreceiver.hh b/pdns/tcpreceiver.hh index e7ce8067ed34..fbb6bd8ea0bf 100644 --- a/pdns/tcpreceiver.hh +++ b/pdns/tcpreceiver.hh @@ -55,7 +55,7 @@ private: static bool canDoAXFR(std::unique_ptr& q, bool isAXFR, std::unique_ptr& packetHandler); static void doConnection(int fd); static void decrementClientCount(const ComboAddress& remote); - void thread(void); + void thread(); static LockGuarded> s_clientsCount; static LockGuarded> s_P; static std::unique_ptr d_connectionroom_sem; diff --git a/pdns/utility.hh b/pdns/utility.hh index 5ddf2cc0f2b0..7429a10e16de 100644 --- a/pdns/utility.hh +++ b/pdns/utility.hh @@ -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 ); @@ -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 );