projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'collectd-5.5' into collectd-5.6
[collectd.git]
/
src
/
netapp.c
diff --git
a/src/netapp.c
b/src/netapp.c
index
26577da
..
d739696
100644
(file)
--- a/
src/netapp.c
+++ b/
src/netapp.c
@@
-2872,7
+2872,6
@@
static int cna_read (user_data_t *ud);
static int cna_register_host (host_config_t *host) /* {{{ */
{
char cb_name[256];
static int cna_register_host (host_config_t *host) /* {{{ */
{
char cb_name[256];
- user_data_t ud = { 0 };
if (host->vfiler)
ssnprintf (cb_name, sizeof (cb_name), "netapp-%s-%s",
if (host->vfiler)
ssnprintf (cb_name, sizeof (cb_name), "netapp-%s-%s",
@@
-2880,8
+2879,10
@@
static int cna_register_host (host_config_t *host) /* {{{ */
else
ssnprintf (cb_name, sizeof (cb_name), "netapp-%s", host->name);
else
ssnprintf (cb_name, sizeof (cb_name), "netapp-%s", host->name);
- ud.data = host;
- ud.free_func = (void (*) (void *)) free_host_config;
+ user_data_t ud = {
+ .data = host,
+ .free_func = (void (*) (void *)) free_host_config
+ };
plugin_register_complex_read (/* group = */ NULL, cb_name,
/* callback = */ cna_read,
plugin_register_complex_read (/* group = */ NULL, cb_name,
/* callback = */ cna_read,