From: Davin McCall Date: Mon, 5 Jun 2017 23:00:22 +0000 (+0100) Subject: Quash build warning. X-Git-Tag: v0.06~97 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f810e732b2192810ca6ed2b9d3bfa7f1a9fad19a;p=oweals%2Fdinit.git Quash build warning. --- diff --git a/src/load_service.cc b/src/load_service.cc index 1ade7cd..e246958 100644 --- a/src/load_service.cc +++ b/src/load_service.cc @@ -503,7 +503,7 @@ ServiceRecord * ServiceSet::loadServiceRecord(const char * name) decltype(restart_interval.tv_nsec) insec = 0; auto max_secs = std::numeric_limits::max() / 10; auto len = interval_str.length(); - int i; + decltype(len) i; for (i = 0; i < len; i++) { char ch = interval_str[i]; if (ch == '.') {