X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Femail.c;h=1027eb90ad1fed60e77219fa8b71dc399ab315e7;hb=c76419c0cf983f1ecd3d36aa236cc4e3f9cff733;hp=2662da9e3590f83832c321355e353d016afa59d1;hpb=5236399c4c5483b1a9c21233e34b2b4357800d58;p=collectd.git diff --git a/src/email.c b/src/email.c index 2662da9e..1027eb90 100644 --- a/src/email.c +++ b/src/email.c @@ -653,14 +653,10 @@ static int email_shutdown (void) static void email_submit (const char *type, const char *type_instance, 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, "email", sizeof (vl.plugin)); sstrncpy (vl.type, type, sizeof (vl.type)); sstrncpy (vl.type_instance, type_instance, sizeof (vl.type_instance));