Code

varnish plugin: Fix syntax error.
authorFlorian Forster <octo@collectd.org>
Mon, 12 Sep 2016 07:33:47 +0000 (09:33 +0200)
committerFlorian Forster <octo@collectd.org>
Mon, 12 Sep 2016 07:33:47 +0000 (09:33 +0200)
src/varnish.c

index e34ee5691231449e846bbd739ce6dfc6a10ba215..c2149126bea18963ad9964119ba21ee6b937477f 100644 (file)
@@ -1134,8 +1134,8 @@ static int varnish_config_instance (const oconfig_item_t *ci) /* {{{ */
                        /* callback  = */ varnish_read,
                        /* interval  = */ 0,
                        &(user_data_t) {
-                               ud.data = conf,
-                               ud.free_func = varnish_config_free,
+                               .data = conf,
+                               .free_func = varnish_config_free,
                        });
 
        have_instance = 1;