projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67b7787
)
collectdmon: fix build failure on Xenial
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Tue, 15 May 2018 07:46:01 +0000
(09:46 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Tue, 15 May 2018 07:46:01 +0000
(09:46 +0200)
CC src/collectdmon.o
src/collectdmon.c:262:44: error: comparison of unsigned expression >= 0 is always true [-Werror,-Wtautological-compare]
while (((time_left = sleep(time_left)) >= 0) && loop == 0)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
1 error generated.
src/collectdmon.c
patch
|
blob
|
history
diff --git
a/src/collectdmon.c
b/src/collectdmon.c
index
59bebf0
..
43ff6af
100644
(file)
--- a/
src/collectdmon.c
+++ b/
src/collectdmon.c
@@
-259,7
+259,7
@@
static void check_respawn(void) {
"disabled for %i seconds",
time_left);
- while (((time_left = sleep(time_left)) >
=
0) && loop == 0)
+ while (((time_left = sleep(time_left)) > 0) && loop == 0)
;
}
return;