X-Git-Url: https://git.octo.it/?p=collection4.git;a=blobdiff_plain;f=src%2Fgraph.c;h=8d12a25a1606d397d4ac20e66cb91fe9b45af9ee;hp=01f0791dfa8ac7ea7fd761ced83c3070216fde45;hb=8a3753760230b270c8f4615891cba2586a661d21;hpb=b7d53a7bc78730802b99d089caa063ea78a7ce8e diff --git a/src/graph.c b/src/graph.c index 01f0791..8d12a25 100644 --- a/src/graph.c +++ b/src/graph.c @@ -470,27 +470,27 @@ int graph_clear_instances (graph_config_t *cfg) /* {{{ */ } /* }}} int graph_clear_instances */ int graph_get_rrdargs (graph_config_t *cfg, graph_instance_t *inst, /* {{{ */ - str_array_t *args) + rrd_args_t *args) { if ((cfg == NULL) || (inst == NULL) || (args == NULL)) return (EINVAL); if (cfg->title != NULL) { - array_append (args, "-t"); - array_append (args, cfg->title); + array_append (args->options, "-t"); + array_append (args->options, cfg->title); } if (cfg->vertical_label != NULL) { - array_append (args, "-v"); - array_append (args, cfg->vertical_label); + array_append (args->options, "-v"); + array_append (args->options, cfg->vertical_label); } if (cfg->show_zero) { - array_append (args, "-l"); - array_append (args, "0"); + array_append (args->options, "-l"); + array_append (args->options, "0"); } return (0);