Code

When selecting the x-axis label take the length of the time shown in the graph into...
[rrdtool-all.git] / program / src / rrd_tune.c
index 3f596a047f9ad09b5401eee476356d5af051e046..9cc7ac06135c5bcb36d11693e7b4979659eabd7b 100644 (file)
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * RRDtool 1.2rc4  Copyright by Tobi Oetiker, 1997-2005
+ * RRDtool 1.2.11  Copyright by Tobi Oetiker, 1997-2005
  *****************************************************************************
  * change header parameters of an rrd
  *****************************************************************************
@@ -61,6 +61,7 @@ rrd_tune(int argc, char **argv)
     double              min;
     double              max;
     char                dst[DST_SIZE];
+    optind = 0; opterr = 0;  /* initialize getopt */
 
 
     if(rrd_open(argv[1],&rrd_file,&rrd, RRD_READWRITE)==-1){