]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Get rid of explicit rfc1982LessThan instantiation. NFCI
authorMiod Vallat <miod.vallat@powerdns.com>
Fri, 16 Jan 2026 07:21:42 +0000 (08:21 +0100)
committerMiod Vallat <miod.vallat@powerdns.com>
Fri, 16 Jan 2026 07:21:42 +0000 (08:21 +0100)
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
pdns/ixfrdist.cc

index e9824aa7f1dcad8c0275f297de8ef5a646294954..a779fb94599d8a1b418ce5c4842d94b2377fc1e6 100644 (file)
@@ -212,11 +212,6 @@ static void usage(po::options_description &desc) {
   cerr << desc << "\n";
 }
 
-// The compiler does not like using rfc1982LessThan in std::sort directly
-static bool sortSOA(uint32_t i, uint32_t j) {
-  return rfc1982LessThan(i, j);
-}
-
 static void cleanUpDomain(const ZoneName& domain, const uint16_t& keep, const string& workdir) {
   string dir = workdir + "/" + domain.toString();
   vector<uint32_t> zoneVersions;
@@ -244,7 +239,7 @@ static void cleanUpDomain(const ZoneName& domain, const uint16_t& keep, const st
   g_log<<Logger::Info<<"cleaning up the oldest "<<zoneVersions.size() - keep<<endl;
 
   // Sort the versions
-  std::sort(zoneVersions.begin(), zoneVersions.end(), sortSOA);
+  std::sort(zoneVersions.begin(), zoneVersions.end(), rfc1982LessThan<uint32_t>);
 
   // And delete all the old ones
   {