projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
AUTHORS: I take care of EPEL too
[collectd.git]
/
src
/
write_http.c
diff --git
a/src/write_http.c
b/src/write_http.c
index
ec538b6
..
a12a7f5
100644
(file)
--- a/
src/write_http.c
+++ b/
src/write_http.c
@@
-629,7
+629,6
@@
static int wh_config_node (oconfig_item_t *ci) /* {{{ */
user_data_t user_data = { 0 };
char callback_name[DATA_MAX_NAME_LEN];
int status = 0;
user_data_t user_data = { 0 };
char callback_name[DATA_MAX_NAME_LEN];
int status = 0;
- int i;
cb = calloc (1, sizeof (*cb));
if (cb == NULL)
cb = calloc (1, sizeof (*cb));
if (cb == NULL)
@@
-655,7
+654,7
@@
static int wh_config_node (oconfig_item_t *ci) /* {{{ */
if (strcasecmp ("URL", ci->key) == 0)
cf_util_get_string (ci, &cb->location);
if (strcasecmp ("URL", ci->key) == 0)
cf_util_get_string (ci, &cb->location);
- 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;
@@
-789,9
+788,7
@@
static int wh_config_node (oconfig_item_t *ci) /* {{{ */
static int wh_config (oconfig_item_t *ci) /* {{{ */
{
static int wh_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;