summaryrefslogtreecommitdiff
path: root/src/configparser.cpp
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-08-27 15:03:10 +0200
committerattilamolnar <attilamolnar@hush.com>2013-08-27 15:03:10 +0200
commit5384ddf545575bc27904b3534fb9d2340de7a1d7 (patch)
treebbf13f551069b3bdb2a26fa4b3eec980cc3bfc05 /src/configparser.cpp
parent6b16dbc84c748292535d1309cadf696f7828a8a4 (diff)
Fix Windows build and a few more problems
Diffstat (limited to 'src/configparser.cpp')
-rw-r--r--src/configparser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/configparser.cpp b/src/configparser.cpp
index d3723d350..0e2a86706 100644
--- a/src/configparser.cpp
+++ b/src/configparser.cpp
@@ -460,13 +460,13 @@ void ConfigTag::CheckRange(const std::string& key, long& res, long def, long min
}
}
-time_t ConfigTag::getDuration(const std::string& key, long def, long min, long max)
+long ConfigTag::getDuration(const std::string& key, long def, long min, long max)
{
std::string duration;
if (!readString(key, duration))
return def;
- time_t ret = InspIRCd::Duration(duration);
+ long ret = InspIRCd::Duration(duration);
CheckRange(key, ret, def, min, max);
return ret;
}