]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
NULL -> nullptr
authorOtto Moerbeek <otto@drijf.net>
Fri, 29 Nov 2019 08:30:12 +0000 (09:30 +0100)
committerGitHub <noreply@github.com>
Fri, 29 Nov 2019 08:30:12 +0000 (09:30 +0100)
Co-Authored-By: Remi Gacogne <rgacogne@users.noreply.github.com>
pdns/syncres.hh

index b53b6ab34b5311539a1837c7c1213422dc675362..336a252643edf9b506a631118b6f0bac5cf047c8 100644 (file)
@@ -135,7 +135,7 @@ public:
   }
 
   void prune() {
-    time_t now = time(NULL);
+    time_t now = time(nullptr);
     auto &ind = d_cont.template get<time_t>();
     ind.erase(ind.begin(), ind.upper_bound(now));
   }