projects
/
oweals
/
dinit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97a1ba8
)
Quash build warning.
author
Davin McCall
<davmac@davmac.org>
Mon, 5 Jun 2017 23:00:22 +0000
(
00:00
+0100)
committer
Davin McCall
<davmac@davmac.org>
Mon, 5 Jun 2017 23:00:22 +0000
(
00:00
+0100)
src/load_service.cc
patch
|
blob
|
history
diff --git
a/src/load_service.cc
b/src/load_service.cc
index 1ade7cd03444480f19c64feb1313d8bb57ea293f..e2469586be4df71cf3219a35a88f5c47675155ce 100644
(file)
--- 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<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 == '.') {