Code

we should not use C++ comments in c files
[rrdtool-all.git] / program / src / rrd_tune.c
index 5dd747173ca4c5f6ac1f1e83f4ee5c116e588b3f..d6a55b270d6f161cf78bbd53e1d7e74e7ed409cd 100644 (file)
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * RRDtool 1.2rc3  Copyright by Tobi Oetiker, 1997-2005
+ * RRDtool 1.2.5  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){