projects
/
collection4.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Various modules: Use the new "rrd_args_t" structure.
[collection4.git]
/
src
/
graph.c
diff --git
a/src/graph.c
b/src/graph.c
index
01f0791
..
8d12a25
100644
(file)
--- 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, /* {{{ */
} /* }}} 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)
{
{
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)
{
}
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)
{
}
if (cfg->show_zero)
{
- array_append (args, "-l");
- array_append (args, "0");
+ array_append (args
->options
, "-l");
+ array_append (args
->options
, "0");
}
return (0);
}
return (0);