Commit 4976ff58 authored by Evan Hunt's avatar Evan Hunt
Browse files

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
parent 0adba2c8
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment