projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #1856 from rubenk/snmp-dont-dispatch-values-with-empty-type-instance
[collectd.git]
/
src
/
target_set.c
diff --git
a/src/target_set.c
b/src/target_set.c
index
ee068ec
..
fee5ffd
100644
(file)
--- a/
src/target_set.c
+++ b/
src/target_set.c
@@
-143,7
+143,6
@@
static int ts_create (const oconfig_item_t *ci, void **user_data) /* {{{ */
{
ts_data_t *data;
int status;
{
ts_data_t *data;
int status;
- int i;
data = calloc (1, sizeof (*data));
if (data == NULL)
data = calloc (1, sizeof (*data));
if (data == NULL)
@@
-160,7
+159,7
@@
static int ts_create (const oconfig_item_t *ci, void **user_data) /* {{{ */
data->meta = NULL;
status = 0;
data->meta = NULL;
status = 0;
- for (i = 0; i < ci->children_num; i++)
+ for (i
nt i
= 0; i < ci->children_num; i++)
{
oconfig_item_t *child = ci->children + i;
{
oconfig_item_t *child = ci->children + i;