X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_tune.c;h=0df0476b5c7756dcc3a21de632fd8b0a95058fe7;hb=4d3bdc2fb368a91d2cae832040c6e632fb553bde;hp=4975d2100b9aa902c280bb3e3a69602acb451968;hpb=219fd9224e3117dcf59df8818d4e9e3eab26022a;p=rrdtool.git diff --git a/src/rrd_tune.c b/src/rrd_tune.c index 4975d21..0df0476 100644 --- a/src/rrd_tune.c +++ b/src/rrd_tune.c @@ -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);