From 2d36fcb16ef3209fffbe9f4b600971a1edd2ae4b Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sat, 14 Apr 2018 14:59:35 +0100 Subject: Convert ConfigTag::getDuration to return an unsigned long. --- src/configparser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/configparser.cpp') diff --git a/src/configparser.cpp b/src/configparser.cpp index 5feff013f..624f3aea6 100644 --- a/src/configparser.cpp +++ b/src/configparser.cpp @@ -496,13 +496,13 @@ long ConfigTag::getInt(const std::string &key, long def, long min, long max) return res; } -long ConfigTag::getDuration(const std::string& key, long def, long min, long max) +unsigned long ConfigTag::getDuration(const std::string& key, unsigned long def, unsigned long min, unsigned long max) { std::string duration; if (!readString(key, duration)) return def; - long ret = InspIRCd::Duration(duration); + unsigned long ret = InspIRCd::Duration(duration); CheckRange(tag, key, ret, def, min, max); return ret; } -- cgit v1.2.3