From 6909b8c50d2337d693f898e1944f4b7ea50c4482 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Mon, 10 Apr 2017 10:08:24 +0200 Subject: [PATCH] rec: de-inline & document addTTLModifiedRecords --- pdns/syncres.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 14f3c69bc..75a9430fc 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; -- 2.49.0