From f810e732b2192810ca6ed2b9d3bfa7f1a9fad19a Mon Sep 17 00:00:00 2001 From: Davin McCall Date: Tue, 6 Jun 2017 00:00:22 +0100 Subject: [PATCH] Quash build warning. --- src/load_service.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 == '.') { -- 2.25.1