summaryrefslogtreecommitdiff
path: root/modules/dns.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-02-11 18:16:20 +0000
committerSadie Powell <sadie@witchery.services>2024-02-11 18:18:18 +0000
commit5c50bcb9c76afc6e2d8552ebc57674f385c674fc (patch)
treedbf7e8d4202cbef6528972d0e3501f7872aedc9b /modules/dns.cpp
parentcef56abea4cf302d20ba7ab33719e86276b672ea (diff)
Remove the time_t parameter from Tick and TickTimers.
Most uses of Tick do not use the parameter and even when it is used it is always the same as CurTime.
Diffstat (limited to 'modules/dns.cpp')
-rw-r--r--modules/dns.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/dns.cpp b/modules/dns.cpp
index 3a2b2fb9a..221b533c8 100644
--- a/modules/dns.cpp
+++ b/modules/dns.cpp
@@ -493,7 +493,9 @@ public:
}
/* Times out after a few seconds */
- void Tick(time_t) override { }
+ void Tick() override
+ {
+ }
void Reply(Packet *p) override
{
@@ -968,7 +970,7 @@ public:
return serial;
}
- void Tick(time_t now) override
+ void Tick() override
{
Log(LOG_DEBUG_2) << "Resolver: Purging DNS cache";
@@ -979,7 +981,7 @@ public:
it_next = it;
++it_next;
- if (req.created + static_cast<time_t>(req.ttl) < now)
+ if (req.created + static_cast<time_t>(req.ttl) < Anope::CurTime)
this->cache.erase(it);
}
}