projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
utils_cmds_test: Add various unit tests for the command parser.
[collectd.git]
/
src
/
email.c
diff --git
a/src/email.c
b/src/email.c
index
9dce34c
..
97fbdfe
100644
(file)
--- a/
src/email.c
+++ b/
src/email.c
@@
-43,8
+43,6
@@
#include "common.h"
#include "plugin.h"
#include "common.h"
#include "plugin.h"
-#include "configfile.h"
-
#include <stddef.h>
#include <sys/un.h>
#include <stddef.h>
#include <sys/un.h>
@@
-655,12
+653,9
@@
static int email_shutdown (void)
static void email_submit (const char *type, const char *type_instance, gauge_t value)
{
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;
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));
vl.values_len = 1;
sstrncpy (vl.host, hostname_g, sizeof (vl.host));
sstrncpy (vl.plugin, "email", sizeof (vl.plugin));