]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
clang-tidy: remove pointless void
authorRosen Penev <rosenp@gmail.com>
Thu, 5 Nov 2020 08:02:52 +0000 (00:02 -0800)
committerRosen Penev <rosenp@gmail.com>
Fri, 5 Feb 2021 01:22:41 +0000 (17:22 -0800)
Found with modernize-redundant-void-arg

Signed-off-by: Rosen Penev <rosenp@gmail.com>
pdns/common_startup.cc
pdns/communicator.cc
pdns/dnsproxy.cc
pdns/dnsrecords.cc
pdns/nsecrecords.cc
pdns/receiver.cc
pdns/sillyrecords.cc
pdns/ueberbackend.cc
pdns/unix_utility.cc

index fe21fa06a1ba7106d972bfad106f4f79ac2dd6f6..06cce20f3f4ad17fd46a52e45d8488bfb48cfa86 100644 (file)
@@ -298,7 +298,7 @@ static uint64_t getLatency(const std::string& str)
   return round(avg_latency);
 }
 
-void declareStats(void)
+void declareStats()
 {
   S.declare("udp-queries","Number of UDP queries received");
   S.declare("udp-do-queries","Number of UDP queries received with DO bit");
index 07fde254e46dceffded8dfbff91a9fa66657f495..a1ba12a4060f21578463a8eef12cdb52b1704a1c 100644 (file)
@@ -40,7 +40,7 @@
 #include "threadname.hh"
 
 // there can be MANY OF THESE
-void CommunicatorClass::retrievalLoopThread(void)
+void CommunicatorClass::retrievalLoopThread()
 {
   setThreadName("pdns/comm-retre");
   for(;;) {
@@ -107,7 +107,7 @@ void CommunicatorClass::go()
   loadArgsIntoSet("forward-notify", PacketHandler::s_forwardNotify);
 }
 
-void CommunicatorClass::mainloop(void)
+void CommunicatorClass::mainloop()
 {
   try {
     setThreadName("pdns/comm-main");
index 64d1322247e4de5d4884ca712536fc999a1571c9..0f03334830c05072fd207413f3a7376c6d3a1f5f 100644 (file)
@@ -184,7 +184,7 @@ int DNSProxy::getID_locked()
   }
 }
 
-void DNSProxy::mainloop(void)
+void DNSProxy::mainloop()
 {
   setThreadName("pdns/dnsproxy");
   try {
index 90ef4aa07b84246b80d26db4287d533224c1a06a..d7a79abf33922e350f7b87fc72a690250fd17ed8 100644 (file)
@@ -418,7 +418,7 @@ boilerplate_conv(RKEY, 57,
 RKEYRecordContent::RKEYRecordContent() {}
 
 /* EUI48 start */
-void EUI48RecordContent::report(void) 
+void EUI48RecordContent::report()
 {
   regist(1, QType::EUI48, &make, &make, "EUI48");
 }
@@ -461,7 +461,7 @@ string EUI48RecordContent::getZoneRepresentation(bool noDot) const
 
 /* EUI64 start */
 
-void EUI64RecordContent::report(void)
+void EUI64RecordContent::report()
 {
   regist(1, QType::EUI64, &make, &make, "EUI64");
 }
@@ -506,7 +506,7 @@ string EUI64RecordContent::getZoneRepresentation(bool noDot) const
 
 /* APL start */
 /* https://tools.ietf.org/html/rfc3123 */
-void APLRecordContent::report(void)
+void APLRecordContent::report()
 {
   regist(1, QType::APL, &make, &make, "APL");
 }
index 7f340d9a8baefbd893142d0f675cc72905d06a1d..15a613b6b135a1927a44a0a65586cd0919b331dd 100644 (file)
@@ -164,7 +164,7 @@ string NSECBitmap::getZoneRepresentation() const
   return ret;
 }
 
-void NSECRecordContent::report(void)
+void NSECRecordContent::report()
 {
   regist(1, 47, &make, &make, "NSEC");
 }
@@ -213,7 +213,7 @@ string NSECRecordContent::getZoneRepresentation(bool noDot) const
 
 ////// begin of NSEC3
 
-void NSEC3RecordContent::report(void)
+void NSEC3RecordContent::report()
 {
   regist(1, 50, &make, &make, "NSEC3");
 }
@@ -286,7 +286,7 @@ string NSEC3RecordContent::getZoneRepresentation(bool noDot) const
 }
 
 
-void NSEC3PARAMRecordContent::report(void)
+void NSEC3PARAMRecordContent::report()
 {
   regist(1, 51, &make, &make, "NSEC3PARAM");
   regist(254, 51, &make, &make, "NSEC3PARAM");
index 084dfe9a5f12c743dbe5e83e905d21ad522ab95e..c68c192925468711f6045c3ef4a881864ca10e37 100644 (file)
@@ -101,7 +101,7 @@ const char *funnytext=
 This file is where it all happens - main is here, as are the two pivotal threads qthread() and athread()
 */
 
-static void daemonize(void)
+static void daemonize()
 {
   if(fork())
     exit(0); // bye bye
@@ -129,7 +129,7 @@ static void takedown(int i)
   }
 }
 
-static void writePid(void)
+static void writePid()
 {
   if(!::arg().mustDo("write-pid"))
     return;
index acb42cb5d33f21d394159921be1cc9df30e4bc5f..f6197bf17f50f49360be8db99348be8229306824 100644 (file)
@@ -153,7 +153,7 @@ latlon2ul(const char **latlonstrptr, int *which)
   return (retval);
 }
 
-void LOCRecordContent::report(void)
+void LOCRecordContent::report()
 {
   regist(1, QType::LOC, &make, &make, "LOC");
   regist(254, QType::LOC, &make, &make, "LOC");
index cc4d1d0ed956e263c61c8c817dfa679b631d1de7..4df720760c43e4d754a467dc35a656ce49e5759e 100644 (file)
@@ -94,7 +94,7 @@ bool UeberBackend::loadModules(const vector<string>& modules, const string& path
   return true;
 }
 
-void UeberBackend::go(void)
+void UeberBackend::go()
 {
   if (::arg().mustDo("consistent-backends")) {
     s_doANYLookupsOnly = true;
index 4cef1e5709404dbc0acb24f1dfaa9ad8a3dd8419..a3992b5e7f64ab0a53d84f20f6ed0e8abd453c33 100644 (file)
@@ -166,7 +166,7 @@ void Utility::dropUserPrivs( uid_t uid )
 
 
 // Returns the current process id.
-Utility::pid_t Utility::getpid( void )
+Utility::pid_t Utility::getpid( )
 {
   return ::getpid();
 }
@@ -179,7 +179,7 @@ int Utility::gettimeofday( struct timeval *tv, void *tz )
 }
 
 // Sets the random seed.
-void Utility::srandom(void)
+void Utility::srandom()
 {
   struct timeval tv;
   gettimeofday(&tv, 0);