projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca29937
)
collectd-nagios: Fix -Wsign-conversion warnings.
author
Florian Forster
<octo@collectd.org>
Fri, 3 Jul 2015 09:49:07 +0000
(11:49 +0200)
committer
Florian Forster
<octo@collectd.org>
Fri, 3 Jul 2015 09:49:07 +0000
(11:49 +0200)
src/collectd-nagios.c
patch
|
blob
|
history
diff --git
a/src/collectd-nagios.c
b/src/collectd-nagios.c
index
2719093
..
3d6039c
100644
(file)
--- a/
src/collectd-nagios.c
+++ b/
src/collectd-nagios.c
@@
-104,7
+104,7
@@
static int consolitation_g = CON_NONE;
static _Bool nan_is_error_g = 0;
static char **match_ds_g = NULL;
-static
int
match_ds_num_g = 0;
+static
size_t
match_ds_num_g = 0;
/* `strdup' is an XSI extension. I don't want to pull in all of XSI just for
* that, so here's an own implementation.. It's easy enough. The GCC attributes
@@
-148,7
+148,7
@@
static int filter_ds (size_t *values_num,
return (RET_UNKNOWN);
}
- for (i = 0; i <
(size_t)
match_ds_num_g; i++)
+ for (i = 0; i < match_ds_num_g; i++)
{
size_t j;