From 6bd851a4d05d912d4bc33bd1f35b2f2c14e4f29f Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Mon, 16 Feb 2009 20:35:56 +0000 Subject: [PATCH] Replaced time_t with long in the ValueItem class, this was preventing building under FreeBSD. Works under FreeBSD and Linux now. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2098 5417fbe8-f217-4b02-8779-1006273d7864 --- include/configreader.h | 4 ++-- src/config.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/configreader.h b/include/configreader.h index 0e4700325..35ed02809 100644 --- a/include/configreader.h +++ b/include/configreader.h @@ -61,8 +61,8 @@ class ValueItem ValueItem(const char *); /** Initialize with an std::string */ ValueItem(const std::string &); - /** Initialize with time_t **/ - ValueItem(time_t); + /** Initialize with a long */ + ValueItem(long); /** Change value to a char pointer */ //void Set(char *); /** Change value to a const char pointer */ diff --git a/src/config.c b/src/config.c index 42086cfae..0a230533e 100644 --- a/src/config.c +++ b/src/config.c @@ -1515,7 +1515,7 @@ ValueItem::ValueItem(int value) : v("") v = n.str(); } -ValueItem::ValueItem(time_t value) : v("") +ValueItem::ValueItem(long value) : v("") { std::stringstream n; n << value;