Browse Source

change DATE_LEN from an enum value to a const size_t variable.

git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1438 e5f2f494-b856-4b98-b285-d166d9295462
Evan Hunt 15 years ago
parent
commit
4976ff58ef
1 changed files with 2 additions and 4 deletions
  1. 2 4
      src/lib/dns/dnssectime.cc

+ 2 - 4
src/lib/dns/dnssectime.cc

@@ -40,10 +40,6 @@ using namespace std;
 namespace isc {
 namespace dns {
 
-enum {
-    DATE_LEN = 14       // YYYYMMDDHHmmSS
-};
-
 string
 timeToText(const time_t timeval) {
     struct tm* const t = gmtime(&timeval);
@@ -66,6 +62,8 @@ timeToText(const time_t timeval) {
 }
 
 namespace {
+const size_t DATE_LEN = 14;      // YYYYMMDDHHmmSS
+
 inline void
 checkRange(const int min, const int max, const int value,
            const string& valname)