]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: de-inline & document addTTLModifiedRecords
authorPieter Lexis <pieter.lexis@powerdns.com>
Mon, 10 Apr 2017 08:08:24 +0000 (10:08 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Mon, 10 Apr 2017 08:08:24 +0000 (10:08 +0200)
pdns/syncres.cc

index 14f3c69bcf15d7feb230dd8bd8a3e763e4a9c96a..75a9430fc7f9467a3d36702190cf989ccdbf8933 100644 (file)
@@ -795,7 +795,14 @@ bool SyncRes::doCNAMECacheCheck(const DNSName &qname, const QType &qtype, vector
   return false;
 }
 
-static inline void addTTLModifiedRecords(const vector<DNSRecord>& records, const uint32_t ttl, vector<DNSRecord>& ret) {
+/*!
+ * Convience function to push the records from records into ret with a new TTL
+ *
+ * \param records DNSRecords that need to go into ret
+ * \param ttl     The new TTL for these records
+ * \param ret     The vector of DNSRecords that should contian the records with the modified TTL
+ */
+static void addTTLModifiedRecords(const vector<DNSRecord>& records, const uint32_t ttl, vector<DNSRecord>& ret) {
   for (const auto& rec : records) {
     DNSRecord r(rec);
     r.d_ttl = ttl;