[rrd-developers] [patch] make rrd_cgi.c build again

Ian Holsman rrd.developers at holsman.net
Thu Nov 27 06:16:35 MET 2003


this makes it build again,
not sure why the rrd_graph function call lost a argument ;(

cheers
Ian
Index: rrd_cgi.c
===================================================================
RCS file: /usr/cvs/rrdtool/program/src/rrd_cgi.c,v
retrieving revision 1.12
diff -u -r1.12 rrd_cgi.c
--- rrd_cgi.c   23 Nov 2003 12:55:37 -0000      1.12
+++ rrd_cgi.c   27 Nov 2003 05:14:08 -0000
@@ -473,7 +473,7 @@
   * */
  #define MAX_STRFTIME_SIZE 256
  char* printstrftime(long argc, char **args){
-       struct  time_value start_tv, end_tv;
+       struct  rrd_time_value start_tv, end_tv;
         char    *parsetime_error = NULL;
         char    formatted[MAX_STRFTIME_SIZE];
         struct tm *the_tm;
@@ -677,7 +677,7 @@
    optind=0; /* reset gnu getopt */
    opterr=0; /* reset gnu getopt */
    calfree();
-  if( rrd_graph(argc+1, args-1, &calcpr, &xsize, &ysize) != -1 ) {
+  if( rrd_graph(argc+1, args-1, &calcpr, &xsize, &ysize, NULL) != -1 ) {
      return stralloc(calcpr[0]);
    } else {
      if (rrd_test_error()) {

--
Unsubscribe mailto:rrd-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-developers-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-developers
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-developers mailing list