X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fusers.c;h=ce626ae3a902e32d47c410cd354a5afe7b6deb36;hb=1aa4295ba6875ceb02a7383237bc2485ffab9c1e;hp=30e0dbe67020817ed0d4b2630eb0341f99cdd5be;hpb=e6798095bb2f063dd97619399575fef3e0fe501e;p=collectd.git diff --git a/src/users.c b/src/users.c index 30e0dbe6..ce626ae3 100644 --- a/src/users.c +++ b/src/users.c @@ -45,12 +45,9 @@ static void users_submit (gauge_t value) { - value_t values[1]; value_list_t vl = VALUE_LIST_INIT; - values[0].gauge = value; - - vl.values = values; + vl.values = &(value_t) { .gauge = value }; vl.values_len = 1; sstrncpy (vl.host, hostname_g, sizeof (vl.host)); sstrncpy (vl.plugin, "users", sizeof (vl.plugin));