X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fopenldap.c;h=374181dfb2980592449536c8b381847df10e5085;hb=5cd5988ec752f441254fc887117c3d5aa8f8d094;hp=d424cb457557fe563ebc4cf997604d42a19ada53;hpb=5523a080010dcb7a61dc0dccc3969a2a048e52f9;p=collectd.git diff --git a/src/openldap.c b/src/openldap.c index d424cb45..374181df 100644 --- a/src/openldap.c +++ b/src/openldap.c @@ -663,15 +663,13 @@ static int cldap_config_add (oconfig_item_t *ci) /* {{{ */ (st->host != NULL) ? st->host : hostname_g, (st->name != NULL) ? st->name : "default"); - user_data_t ud = { - .data = st - }; - status = plugin_register_complex_read (/* group = */ NULL, /* name = */ callback_name, /* callback = */ cldap_read_host, /* interval = */ 0, - /* user_data = */ &ud); + /* user_data = */ &(user_data_t) { + .data = st, + }); } }