From 2f0b03e515cd82e6fd46ff98ea99a0f671f3bc22 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sun, 11 Sep 2016 21:35:34 +0200 Subject: [PATCH] Tree wide: Don't document the user_data_t holds user data. --- src/apache.c | 2 +- src/dbi.c | 2 +- src/lua.c | 4 ++-- src/memcached.c | 2 +- src/netapp.c | 2 +- src/openldap.c | 2 +- src/varnish.c | 4 ++-- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/apache.c b/src/apache.c index 56546ad8..c02dfe0f 100644 --- a/src/apache.c +++ b/src/apache.c @@ -250,7 +250,7 @@ static int config_add (oconfig_item_t *ci) /* name = */ callback_name, /* callback = */ apache_read_host, /* interval = */ 0, - /* user_data = */ &(user_data_t) { + &(user_data_t) { .data = st, .free_func = apache_free, }); diff --git a/src/dbi.c b/src/dbi.c index 84aa7474..fefbf87b 100644 --- a/src/dbi.c +++ b/src/dbi.c @@ -399,7 +399,7 @@ static int cdbi_config_add_database (oconfig_item_t *ci) /* {{{ */ /* name = */ name ? name : db->name, /* callback = */ cdbi_read_database, /* interval = */ (db->interval > 0) ? db->interval : 0, - /* user_data = */ &(user_data_t) { + &(user_data_t) { .data = db, }); sfree (name); diff --git a/src/lua.c b/src/lua.c index cf6dadcc..d10b4ea7 100644 --- a/src/lua.c +++ b/src/lua.c @@ -307,7 +307,7 @@ static int lua_cb_register_read(lua_State *L) /* {{{ */ /* name = */ function_name, /* callback = */ clua_read, /* interval = */ 0, - /* user_data = */ &(user_data_t) { + &(user_data_t) { .data = cb, }); @@ -349,7 +349,7 @@ static int lua_cb_register_write(lua_State *L) /* {{{ */ int status = plugin_register_write(/* name = */ function_name, /* callback = */ clua_write, - /* user_data = */ &(user_data_t) { + &(user_data_t) { .data = cb, }); diff --git a/src/memcached.c b/src/memcached.c index 2cd3a50a..d83d4c83 100644 --- a/src/memcached.c +++ b/src/memcached.c @@ -558,7 +558,7 @@ static int memcached_add_read_callback (memcached_t *st) /* name = */ callback_name, /* callback = */ memcached_read, /* interval = */ 0, - /* user_data = */ &(user_data_t) { + &(user_data_t) { .data = st, .free_func = memcached_free, }); diff --git a/src/netapp.c b/src/netapp.c index 1c9b21ce..bf4c286c 100644 --- a/src/netapp.c +++ b/src/netapp.c @@ -2882,7 +2882,7 @@ static int cna_register_host (host_config_t *host) /* {{{ */ plugin_register_complex_read (/* group = */ NULL, cb_name, /* callback = */ cna_read, /* interval = */ host->interval, - /* user data = */ &(user_data_t) { + &(user_data_t) { .data = host, .free_func = (void *) free_host_config, }); diff --git a/src/openldap.c b/src/openldap.c index 374181df..066dabcd 100644 --- a/src/openldap.c +++ b/src/openldap.c @@ -667,7 +667,7 @@ static int cldap_config_add (oconfig_item_t *ci) /* {{{ */ /* name = */ callback_name, /* callback = */ cldap_read_host, /* interval = */ 0, - /* user_data = */ &(user_data_t) { + &(user_data_t) { .data = st, }); } diff --git a/src/varnish.c b/src/varnish.c index 91320fed..e34ee569 100644 --- a/src/varnish.c +++ b/src/varnish.c @@ -955,7 +955,7 @@ static int varnish_init (void) /* {{{ */ /* name = */ "varnish/localhost", /* callback = */ varnish_read, /* interval = */ 0, - /* user data = */ &(user_data_t) { + &(user_data_t) { .data = conf, .free_func = varnish_config_free, }); @@ -1133,7 +1133,7 @@ static int varnish_config_instance (const oconfig_item_t *ci) /* {{{ */ /* name = */ callback_name, /* callback = */ varnish_read, /* interval = */ 0, - /* user data = */ &(user_data_t) { + &(user_data_t) { ud.data = conf, ud.free_func = varnish_config_free, }); -- 2.30.2