diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-08-27 15:03:10 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-08-27 15:03:10 +0200 |
commit | 5384ddf545575bc27904b3534fb9d2340de7a1d7 (patch) | |
tree | bbf13f551069b3bdb2a26fa4b3eec980cc3bfc05 /src/configparser.cpp | |
parent | 6b16dbc84c748292535d1309cadf696f7828a8a4 (diff) |
Fix Windows build and a few more problems
Diffstat (limited to 'src/configparser.cpp')
-rw-r--r-- | src/configparser.cpp | 4 |
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; } |