summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fb5a98e)
raw | patch | inline | side by side (parent: fb5a98e)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 10 Apr 2007 05:27:04 +0000 (05:27 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 10 Apr 2007 05:27:04 +0000 (05:27 +0000) |
program/src/rrd_graph.c | patch | blob | history | |
program/src/rrd_graph.h | patch | blob | history |
index 5a54c3dfe9d0dc13134e948dd4b78b891808944f..cb95dd8983735a2721bfc58b14182ab75fd10b71 100644 (file)
--- a/program/src/rrd_graph.c
+++ b/program/src/rrd_graph.c
im->step = max((long)im->step, (im->end-im->start)/im->xsize);
}
-int
-rrd_graph_check_vname(image_desc_t *im, char *varname, char *err)
-{
- if ((im->gdes[im->gdes_c-1].vidx=find_var(im,varname))==-1) {
- rrd_set_error("Unknown variable '%s' in %s",varname,err);
- return -1;
- }
- return 0;
-}
int
rrd_graph_color(image_desc_t *im, char *var, char *err, int optional)
{
index 2e8e3bc341f85cdd6c4c20d048b235338912a4f7..e970d8b25ed08708b3cc162b80a1aeefd5c4f02a 100644 (file)
--- a/program/src/rrd_graph.h
+++ b/program/src/rrd_graph.h
@@ -248,7 +248,6 @@ int rrd_graph(int, char **, char ***, int *, int *, FILE *, double *, double *);
void rrd_graph_init(image_desc_t *);
void rrd_graph_options(int, char **, image_desc_t *);
void rrd_graph_script(int, char **, image_desc_t *, int);
-int rrd_graph_check_vname(image_desc_t *, char *, char *);
int rrd_graph_color(image_desc_t *, char *, char *, int);
int bad_format(char *);
int vdef_parse(struct graph_desc_t *,const char *const);