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
0802bee
..
8d12a25
100644
(file)
--- a/
src/graph.c
+++ b/
src/graph.c
@@
-336,7
+336,7
@@
graph_instance_t *graph_inst_find_matching (graph_config_t *cfg, /* {{{ */
return (NULL);
for (i = 0; i < cfg->instances_num; i++)
return (NULL);
for (i = 0; i < cfg->instances_num; i++)
- if (inst_
matches_ident
(cfg->instances[i], ident))
+ if (inst_
ident_matches
(cfg->instances[i], ident))
return (cfg->instances[i]);
return (NULL);
return (cfg->instances[i]);
return (NULL);
@@
-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);