X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_tune.c;h=0df0476b5c7756dcc3a21de632fd8b0a95058fe7;hp=caa2ddad1c0b993740237f4b4dbd5a48fcfc753b;hb=f4abf7d18767b842801a7c38f922e34e0ff3c890;hpb=a4c8bc0c3fe53c713819358f506aa5d24bae5754 diff --git a/src/rrd_tune.c b/src/rrd_tune.c index caa2dda..0df0476 100644 --- a/src/rrd_tune.c +++ b/src/rrd_tune.c @@ -1,5 +1,5 @@ /***************************************************************************** - * RRDtool 1.3rc4 Copyright by Tobi Oetiker, 1997-2008 + * RRDtool 1.3.2 Copyright by Tobi Oetiker, 1997-2008 ***************************************************************************** * change header parameters of an rrd ***************************************************************************** @@ -39,10 +39,12 @@ * *****************************************************************************/ +#include +#include + #include "rrd_tool.h" #include "rrd_rpncalc.h" #include "rrd_hw.h" -#include int set_hwarg( rrd_t *rrd, @@ -98,6 +100,7 @@ int rrd_tune( opterr = 0; /* initialize getopt */ + rrd_init(&rrd); rrd_file = rrd_open(argv[1], &rrd, RRD_READWRITE); if (rrd_file == NULL) { rrd_free(&rrd);