From: Peter van Dijk Date: Sat, 19 Jan 2013 10:14:16 +0000 (+0000) Subject: fix indent X-Git-Tag: rec-3.5-rc1~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ebe9c81736c28f09ead82b5b5327a1ec77b45184;p=thirdparty%2Fpdns.git fix indent git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@3066 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/serialtweaker.cc b/pdns/serialtweaker.cc index 3d923670bf..2d7a07b80e 100644 --- a/pdns/serialtweaker.cc +++ b/pdns/serialtweaker.cc @@ -33,24 +33,24 @@ bool editSOA(DNSSECKeeper& dk, const string& qname, DNSPacket* dp) SOAData sd; fillSOAData(rr.content, sd); if(pdns_iequals(kind,"INCEPTION")) { - time_t inception = getCurrentInception(); - struct tm tm; - localtime_r(&inception, &tm); - boost::format fmt("%04d%02d%02d%02d"); - - string newserdate=(fmt % (tm.tm_year+1900) % (tm.tm_mon +1 )% tm.tm_mday % 1).str(); + time_t inception = getCurrentInception(); + struct tm tm; + localtime_r(&inception, &tm); + boost::format fmt("%04d%02d%02d%02d"); + + string newserdate=(fmt % (tm.tm_year+1900) % (tm.tm_mon +1 )% tm.tm_mday % 1).str(); sd.serial = lexical_cast(newserdate); } else if(pdns_iequals(kind,"INCEPTION-WEEK")) { - time_t inception = getCurrentInception(); - sd.serial = inception / (7*86400); + time_t inception = getCurrentInception(); + sd.serial = inception / (7*86400); } else if(pdns_iequals(kind,"INCREMENT-WEEKS")) { - time_t inception = getCurrentInception(); - sd.serial += inception / (7*86400); + time_t inception = getCurrentInception(); + sd.serial += inception / (7*86400); } else if(pdns_iequals(kind,"EPOCH")) { - sd.serial = time(0); + sd.serial = time(0); } else if(pdns_iequals(kind,"INCEPTION-EPOCH")) { time_t inception = getCurrentInception();