projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
write_tsdb: enable TCP keepalive on network socket
[collectd.git]
/
src
/
write_redis.c
diff --git
a/src/write_redis.c
b/src/write_redis.c
index
3608953
..
135a458
100644
(file)
--- a/
src/write_redis.c
+++ b/
src/write_redis.c
@@
-168,7
+168,6
@@
static int wr_config_node (oconfig_item_t *ci) /* {{{ */
wr_node_t *node;
int timeout;
int status;
wr_node_t *node;
int timeout;
int status;
- int i;
node = calloc (1, sizeof (*node));
if (node == NULL)
node = calloc (1, sizeof (*node));
if (node == NULL)
@@
-191,7
+190,7
@@
static int wr_config_node (oconfig_item_t *ci) /* {{{ */
return (status);
}
return (status);
}
- 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;
@@
-251,9
+250,7
@@
static int wr_config_node (oconfig_item_t *ci) /* {{{ */
static int wr_config (oconfig_item_t *ci) /* {{{ */
{
static int wr_config (oconfig_item_t *ci) /* {{{ */
{
- int i;
-
- for (i = 0; i < ci->children_num; i++)
+ for (int i = 0; i < ci->children_num; i++)
{
oconfig_item_t *child = ci->children + i;
{
oconfig_item_t *child = ci->children + i;