X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fvarnish.c;h=6cc092c0041eac9fcb028e179610f1c4cf40606e;hb=357cae102b2994f1874f5691dc571543111bd5fa;hp=bc6d294a976ec3e0c8cd7de7cc3a432b0851f363;hpb=c7d859191d8fbfc129dea8cfaf9e13e78fd6642c;p=collectd.git diff --git a/src/varnish.c b/src/varnish.c index bc6d294a..6cc092c0 100644 --- a/src/varnish.c +++ b/src/varnish.c @@ -27,7 +27,6 @@ #include "common.h" #include "plugin.h" -#include "configfile.h" #if HAVE_VARNISH_V4 #include @@ -939,7 +938,6 @@ static int varnish_config_apply_default (user_config_t *conf) /* {{{ */ static int varnish_init (void) /* {{{ */ { user_config_t *conf; - user_data_t ud; if (have_instance) return (0); @@ -953,8 +951,10 @@ static int varnish_init (void) /* {{{ */ varnish_config_apply_default (conf); - ud.data = conf; - ud.free_func = varnish_config_free; + user_data_t ud = { + .data = conf, + .free_func = varnish_config_free + }; plugin_register_complex_read (/* group = */ "varnish", /* name = */ "varnish/localhost",