summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cc9e089)
raw | patch | inline | side by side (parent: cc9e089)
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) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1030 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_graph.c | patch | blob | history | |
src/rrd_graph.h | patch | blob | history |
diff --git a/src/rrd_graph.c b/src/rrd_graph.c
index 5a54c3dfe9d0dc13134e948dd4b78b891808944f..cb95dd8983735a2721bfc58b14182ab75fd10b71 100644 (file)
--- a/src/rrd_graph.c
+++ b/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)
{
diff --git a/src/rrd_graph.h b/src/rrd_graph.h
index 2e8e3bc341f85cdd6c4c20d048b235338912a4f7..e970d8b25ed08708b3cc162b80a1aeefd5c4f02a 100644 (file)
--- a/src/rrd_graph.h
+++ b/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);