X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fapache.c;h=578b8deeff2f89d4443eee4beafe79562c25eeb5;hb=1aa4295ba6875ceb02a7383237bc2485ffab9c1e;hp=f0af8c3216d9cca7c6a4ae9a17ed7f1d47c2da77;hpb=03af72c5ef8b98ddfcab87ea44b764f5b0e165aa;p=collectd.git diff --git a/src/apache.c b/src/apache.c index f0af8c32..578b8dee 100644 --- a/src/apache.c +++ b/src/apache.c @@ -411,19 +411,15 @@ static void submit_value (const char *type, const char *type_instance, } /* void submit_value */ static void submit_derive (const char *type, const char *type_instance, - derive_t c, apache_t *st) + derive_t d, apache_t *st) { - value_t v; - v.derive = c; - submit_value (type, type_instance, v, st); + submit_value (type, type_instance, (value_t) { .derive = d }, st); } /* void submit_derive */ static void submit_gauge (const char *type, const char *type_instance, gauge_t g, apache_t *st) { - value_t v; - v.gauge = g; - submit_value (type, type_instance, v, st); + submit_value (type, type_instance, (value_t) { .gauge = g }, st); } /* void submit_gauge */ static void submit_scoreboard (char *buf, apache_t *st)