]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
clang-tidy: remove void
authorRosen Penev <rosenp@gmail.com>
Tue, 5 Dec 2023 01:31:27 +0000 (17:31 -0800)
committerRosen Penev <rosenp@gmail.com>
Tue, 9 Jan 2024 00:09:26 +0000 (16:09 -0800)
Found with modernize-redundant-void-arg

Signed-off-by: Rosen Penev <rosenp@gmail.com>
modules/godbcbackend/sodbc.cc
modules/godbcbackend/sodbc.hh
pdns/dnsrecords.hh
pdns/tcpreceiver.hh
pdns/utility.hh

index 19ca1c203e3dba3fe1b907442971edee4c9609ae..79797ae5cffa199400ff4365b9a1b10ce70cd0a3 100644 (file)
@@ -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 );
index 858967deca1b459489e009a8f4a2d77b1cb00219..cc01f68395154ee8d206f8d4ddd70f71ff4e6006 100644 (file)
@@ -55,7 +55,7 @@ public:
     const std::string& password);
 
   //! Destructor.
-  virtual ~SODBC(void);
+  virtual ~SODBC();
 
   //! Sets the logging state.
   void setLog(bool state) override;
index 1692d8795ad196e8acfec6b257e86ef3aee9e91c..f61d915266f29ac0317193938681bd69df2fac9a 100644 (file)
@@ -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<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;
@@ -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;
index e7ce8067ed34ae1976b5493fa16218b576fa0424..fbb6bd8ea0bfc826ed9a98805b2f08c86661044f 100644 (file)
@@ -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;
index 5ddf2cc0f2b09b970e6d67c48be513f1430cf093..7429a10e16de292fba07073a1e6ebeb504ede1af 100644 (file)
@@ -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 );