projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
command parser: Add a vector-based interface.
[collectd.git]
/
src
/
lpar.c
diff --git
a/src/lpar.c
b/src/lpar.c
index
5b0bd13
..
0e32c83
100644
(file)
--- a/
src/lpar.c
+++ b/
src/lpar.c
@@
-114,12
+114,9
@@
static int lpar_init (void)
static void lpar_submit (const char *type_instance, double value)
{
static void lpar_submit (const char *type_instance, double value)
{
- value_t values[1];
value_list_t vl = VALUE_LIST_INIT;
value_list_t vl = VALUE_LIST_INIT;
- values[0].gauge = (gauge_t)value;
-
- vl.values = values;
+ vl.values = &(value_t) { .gauge = value };
vl.values_len = 1;
if (report_by_serial)
{
vl.values_len = 1;
if (report_by_serial)
{