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");
#include "threadname.hh"
// there can be MANY OF THESE
-void CommunicatorClass::retrievalLoopThread(void)
+void CommunicatorClass::retrievalLoopThread()
{
setThreadName("pdns/comm-retre");
for(;;) {
loadArgsIntoSet("forward-notify", PacketHandler::s_forwardNotify);
}
-void CommunicatorClass::mainloop(void)
+void CommunicatorClass::mainloop()
{
try {
setThreadName("pdns/comm-main");
}
}
-void DNSProxy::mainloop(void)
+void DNSProxy::mainloop()
{
setThreadName("pdns/dnsproxy");
try {
RKEYRecordContent::RKEYRecordContent() {}
/* EUI48 start */
-void EUI48RecordContent::report(void)
+void EUI48RecordContent::report()
{
regist(1, QType::EUI48, &make, &make, "EUI48");
}
/* EUI64 start */
-void EUI64RecordContent::report(void)
+void EUI64RecordContent::report()
{
regist(1, QType::EUI64, &make, &make, "EUI64");
}
/* APL start */
/* https://tools.ietf.org/html/rfc3123 */
-void APLRecordContent::report(void)
+void APLRecordContent::report()
{
regist(1, QType::APL, &make, &make, "APL");
}
return ret;
}
-void NSECRecordContent::report(void)
+void NSECRecordContent::report()
{
regist(1, 47, &make, &make, "NSEC");
}
////// begin of NSEC3
-void NSEC3RecordContent::report(void)
+void NSEC3RecordContent::report()
{
regist(1, 50, &make, &make, "NSEC3");
}
}
-void NSEC3PARAMRecordContent::report(void)
+void NSEC3PARAMRecordContent::report()
{
regist(1, 51, &make, &make, "NSEC3PARAM");
regist(254, 51, &make, &make, "NSEC3PARAM");
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
}
}
-static void writePid(void)
+static void writePid()
{
if(!::arg().mustDo("write-pid"))
return;
return (retval);
}
-void LOCRecordContent::report(void)
+void LOCRecordContent::report()
{
regist(1, QType::LOC, &make, &make, "LOC");
regist(254, QType::LOC, &make, &make, "LOC");
return true;
}
-void UeberBackend::go(void)
+void UeberBackend::go()
{
if (::arg().mustDo("consistent-backends")) {
s_doANYLookupsOnly = true;
// Returns the current process id.
-Utility::pid_t Utility::getpid( void )
+Utility::pid_t Utility::getpid( )
{
return ::getpid();
}
}
// Sets the random seed.
-void Utility::srandom(void)
+void Utility::srandom()
{
struct timeval tv;
gettimeofday(&tv, 0);