Tree wide: Don't document the user_data_t holds user data.
authorFlorian Forster <octo@collectd.org>
Sun, 11 Sep 2016 19:35:34 +0000 (21:35 +0200)
committerFlorian Forster <octo@collectd.org>
Sun, 11 Sep 2016 19:54:49 +0000 (21:54 +0200)
src/apache.c
src/dbi.c
src/lua.c
src/memcached.c
src/netapp.c
src/openldap.c
src/varnish.c

index 56546ad..c02dfe0 100644 (file)
@@ -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,
                                });
index 84aa747..fefbf87 100644 (file)
--- 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);
index cf6dadc..d10b4ea 100644 (file)
--- 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,
                                     });
 
index 2cd3a50..d83d4c8 100644 (file)
@@ -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,
       });
index 1c9b21c..bf4c286 100644 (file)
@@ -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,
                        });
index 374181d..066dabc 100644 (file)
@@ -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,
                                        });
                }
index 91320fe..e34ee56 100644 (file)
@@ -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,
                        });