X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_cgi.c;h=eab341440871e42b15459f565adc0e2fe08ab4d1;hb=37329a5f991870e8f47c8a52f6dd594fef813de6;hp=411b02bb23f75bafa0324a5379d26a5601c41dae;hpb=06c64aacf29db1bbf135e80aa98ec03ec8c6719c;p=rrdtool.git diff --git a/src/rrd_cgi.c b/src/rrd_cgi.c index 411b02b..eab3414 100644 --- a/src/rrd_cgi.c +++ b/src/rrd_cgi.c @@ -1,5 +1,5 @@ /***************************************************************************** - * RRDtool 1.1.x Copyright Tobias Oetiker, 1997 - 2004 + * RRDtool 1.2.6 Copyright by Tobi Oetiker, 1997-2005 ***************************************************************************** * rrd_cgi.c RRD Web Page Generator *****************************************************************************/ @@ -266,6 +266,8 @@ int main(int argc, char *argv[]) { #ifdef MUST_DISABLE_FPMASK fpsetmask(0); #endif + optind = 0; opterr = 0; /* initialize getopt */ + /* what do we get for cmdline arguments? for (i=0;i"; } - optind=0; /* reset gnu getopt */ - opterr=0; /* reset gnu getopt */ calfree(); - if( rrd_graph(argc+1, args-1, &calcpr, &xsize, &ysize,NULL) != -1 ) { + if( rrd_graph(argc+1, args-1, &calcpr, &xsize, &ysize,NULL,&ymin,&ymax) != -1 ) { return stralloc(calcpr[0]); } else { if (rrd_test_error()) {