Browse Source

style cleanup: consistent use of {}

git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1086 e5f2f494-b856-4b98-b285-d166d9295462
JINMEI Tatuya 15 years ago
parent
commit
c6203e01e8
1 changed files with 4 additions and 5 deletions
  1. 4 5
      src/lib/dns/cpp/dnstime.cc

+ 4 - 5
src/lib/dns/cpp/dnstime.cc

@@ -102,18 +102,17 @@ DNSSECTimeFromText(const string& time_txt)
     checkRange(0, 60, second, "second");
 
     timeval = second + (60 * minute) + (3600 * hour) + ((day - 1) * 86400);
-    for (int m = 0; m < (month - 1); m++)
+    for (int m = 0; m < (month - 1); m++) {
             timeval += days[m] * 86400;
-    if (isLeap(year) && month > 2)
+    }
+    if (isLeap(year) && month > 2) {
             timeval += 86400;
+    }
     for (int y = 1970; y < year; y++) {
         timeval += ((isLeap(y) ? 366 : 365 ) * 86400);
     }
 
     return (timeval);
 }
-
-
-
 }
 }