From: Ruben Kerkhof Date: Wed, 13 Feb 2019 18:13:11 +0000 (+0100) Subject: rrdcached plugin: use designated structure initializer X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=2e4ad4405df783aff6b4599c75f564e4a9bf4a19;p=collectd.git rrdcached plugin: use designated structure initializer --- diff --git a/src/rrdcached.c b/src/rrdcached.c index fe5e2d2d..665e2c87 100644 --- a/src/rrdcached.c +++ b/src/rrdcached.c @@ -41,19 +41,15 @@ static char *datadir; static char *daemon_address; static bool config_create_files = true; static bool config_collect_stats = true; -static rrdcreate_config_t rrdcreate_config = { - /* stepsize = */ 0, - /* heartbeat = */ 0, - /* rrarows = */ 1200, - /* xff = */ 0.1, - - /* timespans = */ NULL, - /* timespans_num = */ 0, - - /* consolidation_functions = */ NULL, - /* consolidation_functions_num = */ 0, - - /* async = */ 0}; +static rrdcreate_config_t rrdcreate_config = {.stepsize = 0, + .heartbeat = 0, + .rrarows = 1200, + .xff = 0.1, + .timespans = NULL, + .timespans_num = 0, + .consolidation_functions = NULL, + .consolidation_functions_num = 0, + .async = 0}; /* * Prototypes.