projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
collectd.spec: add gps plugin
[collectd.git]
/
src
/
varnish.c
diff --git
a/src/varnish.c
b/src/varnish.c
index
771d4a4
..
bc6d294
100644
(file)
--- a/
src/varnish.c
+++ b/
src/varnish.c
@@
-24,6
+24,7
@@
**/
#include "collectd.h"
**/
#include "collectd.h"
+
#include "common.h"
#include "plugin.h"
#include "configfile.h"
#include "common.h"
#include "plugin.h"
#include "configfile.h"
@@
-969,7
+970,6
@@
static int varnish_config_instance (const oconfig_item_t *ci) /* {{{ */
user_config_t *conf;
user_data_t ud;
char callback_name[DATA_MAX_NAME_LEN];
user_config_t *conf;
user_data_t ud;
char callback_name[DATA_MAX_NAME_LEN];
- int i;
conf = calloc (1, sizeof (*conf));
if (conf == NULL)
conf = calloc (1, sizeof (*conf));
if (conf == NULL)
@@
-1004,7
+1004,7
@@
static int varnish_config_instance (const oconfig_item_t *ci) /* {{{ */
return (EINVAL);
}
return (EINVAL);
}
- 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;
@@
-1148,9
+1148,7
@@
static int varnish_config_instance (const oconfig_item_t *ci) /* {{{ */
static int varnish_config (oconfig_item_t *ci) /* {{{ */
{
static int varnish_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;