]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
fix indent
authorPeter van Dijk <peter.van.dijk@netherlabs.nl>
Sat, 19 Jan 2013 10:14:16 +0000 (10:14 +0000)
committerPeter van Dijk <peter.van.dijk@netherlabs.nl>
Sat, 19 Jan 2013 10:14:16 +0000 (10:14 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@3066 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/serialtweaker.cc

index 3d923670bf4c85193265c9f41ca08920a3bee7d2..2d7a07b80e8748974eb8749293b6cbe00c896e4f 100644 (file)
@@ -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<uint32_t>(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();