summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ac59939)
raw | patch | inline | side by side (parent: ac59939)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Tue, 9 Aug 2016 11:57:36 +0000 (13:57 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Tue, 9 Aug 2016 11:58:02 +0000 (13:58 +0200) |
collectdctl.c: In function ‘flush’:
collectdctl.c:315:21: warning: comparison between signed and unsigned
integer expressions [-Wsign-compare]
for (int i = 0; i < plugins_num; ++i) {
^
collectdctl.c:323:25: warning: comparison between signed and unsigned
integer expressions [-Wsign-compare]
for (int j = 0; j < identifiers_num; ++j) {
^
collectdctl.c:315:21: warning: comparison between signed and unsigned
integer expressions [-Wsign-compare]
for (int i = 0; i < plugins_num; ++i) {
^
collectdctl.c:323:25: warning: comparison between signed and unsigned
integer expressions [-Wsign-compare]
for (int j = 0; j < identifiers_num; ++j) {
^
src/collectdctl.c | patch | blob | history |
diff --git a/src/collectdctl.c b/src/collectdctl.c
index e60781a91d63aa9253eb134ec12e4c3879afb8b6..31183b1c8b83b37963fb4b34052d400cffdc96f4 100644 (file)
--- a/src/collectdctl.c
+++ b/src/collectdctl.c
plugins[0] = NULL;
}
- for (int i = 0; i < plugins_num; ++i) {
+ for (size_t i = 0; i < plugins_num; ++i) {
if (identifiers_num == 0) {
status = lcc_flush (c, plugins[i], NULL, timeout);
if (status != 0)
(plugins[i] == NULL) ? "(all)" : plugins[i], lcc_strerror (c));
}
else {
- for (int j = 0; j < identifiers_num; ++j) {
+ for (size_t j = 0; j < identifiers_num; ++j) {
status = lcc_flush (c, plugins[i], identifiers + j, timeout);
if (status != 0) {
char id[1024];