Quash build warning.
authorDavin McCall <davmac@davmac.org>
Mon, 5 Jun 2017 23:00:22 +0000 (00:00 +0100)
committerDavin McCall <davmac@davmac.org>
Mon, 5 Jun 2017 23:00:22 +0000 (00:00 +0100)
src/load_service.cc

index 1ade7cd03444480f19c64feb1313d8bb57ea293f..e2469586be4df71cf3219a35a88f5c47675155ce 100644 (file)
@@ -503,7 +503,7 @@ ServiceRecord * ServiceSet::loadServiceRecord(const char * name)
                     decltype(restart_interval.tv_nsec) insec = 0;
                     auto max_secs = std::numeric_limits<decltype(isec)>::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 == '.') {