X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_tune.c;h=706314e416a2150451e83336a13b8d05010f1510;hp=2996b929f16e87df5eb4d4ddac2019daf059aa82;hb=990fcfb7eec407edfe504f42760bae204e1c074d;hpb=285da1fa16e80919db972b1d7021c0b4705bedb1 diff --git a/src/rrd_tune.c b/src/rrd_tune.c index 2996b92..706314e 100644 --- a/src/rrd_tune.c +++ b/src/rrd_tune.c @@ -1,10 +1,13 @@ /***************************************************************************** - * RRDtool 1.1.x Copyright Tobias Oetiker, 1997 - 2002 + * RRDtool 1.2rc9 Copyright by Tobi Oetiker, 1997-2005 ***************************************************************************** * change header parameters of an rrd ***************************************************************************** * $Id$ * $Log$ + * Revision 1.6 2004/05/26 22:11:12 oetiker + * reduce compiler warnings. Many small fixes. -- Mike Slifcak + * * Revision 1.5 2002/02/01 20:34:49 oetiker * fixed version number and date/time * @@ -156,7 +159,7 @@ rrd_tune(int argc, char **argv) fclose(rrd_file); return -1; } - if (dst_conv(dst) == -1){ + if ((int)dst_conv(dst) == -1){ rrd_free(&rrd); fclose(rrd_file); return -1; @@ -277,7 +280,7 @@ rrd_tune(int argc, char **argv) rrd_file); } else { int i; - for(i=0;i< rrd.stat_head->ds_cnt;i++) + for(i=0;i< (int)rrd.stat_head->ds_cnt;i++) if (dst_conv(rrd.ds_def[i].dst) != DST_CDEF) { printf("DS[%s] typ: %s\thbt: %ld\tmin: %1.4f\tmax: %1.4f\n", rrd.ds_def[i].ds_nam,