Code

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 56546ad8f138093d132b1df58cfd8209918bc257..c02dfe0fb19588b5d54bd6e90f534c85f9403fa9 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 84aa74740f7d566e5742ea6f23ab13c07880ffdc..fefbf87bcab0a4a101e6bd2a1f899a37394d3052 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 cf6dadcc28729c82caaa9eaf3f3ae52ad9952e81..d10b4ea737417a0f207ad3122a9683438e4c9955 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 2cd3a50a28c31becc2e7f11eb00f07cad5a18c40..d83d4c83fb74cd71fb5ba530b2610abb44448aa8 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 1c9b21ce1644b80745b257284e8bbd34111f6300..bf4c286c6a9b5dd8b98a3a8ee096c97ed90aa510 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 374181dfb2980592449536c8b381847df10e5085..066dabcd1e6e52a03bf7bb5bd265fb133e2cfa80 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 91320fed8a8ecab93a64ab5fe0620111deea598b..e34ee5691231449e846bbd739ce6dfc6a10ba215 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,
                        });