From: Pieter Lexis Date: Mon, 10 Apr 2017 08:08:24 +0000 (+0200) Subject: rec: de-inline & document addTTLModifiedRecords X-Git-Tag: rec-4.1.0-alpha1~166^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6909b8c50d2337d693f898e1944f4b7ea50c4482;p=thirdparty%2Fpdns.git rec: de-inline & document addTTLModifiedRecords --- diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 14f3c69bcf..75a9430fc7 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -795,7 +795,14 @@ bool SyncRes::doCNAMECacheCheck(const DNSName &qname, const QType &qtype, vector return false; } -static inline void addTTLModifiedRecords(const vector& records, const uint32_t ttl, vector& 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& records, const uint32_t ttl, vector& ret) { for (const auto& rec : records) { DNSRecord r(rec); r.d_ttl = ttl;