]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Convert timestamps in TimedIPSetRule to time_t
authorPieter Lexis <pieter.lexis@powerdns.com>
Fri, 11 Aug 2017 12:08:44 +0000 (14:08 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Fri, 11 Aug 2017 12:08:44 +0000 (14:08 +0200)
This would lead to signed/unsigned comparison warnings on ARM.

pdns/dnsrulactions.hh

index 33e1d7da7287beefb5bf689a3d0c5a103b506ae6..c00452cfa2fa18ce93217ce88a7ed58123d6f5d6 100644 (file)
@@ -272,8 +272,8 @@ private:
       return ah & (bh<<1);
     }
   };
-  std::unordered_map<IPv6, uint32_t, IPv6Hash> d_ip6s;
-  std::unordered_map<uint32_t, uint32_t> d_ip4s;
+  std::unordered_map<IPv6, time_t, IPv6Hash> d_ip6s;
+  std::unordered_map<uint32_t, time_t> d_ip4s;
   mutable pthread_rwlock_t d_lock4;
   mutable pthread_rwlock_t d_lock6;
 };