X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_xport.c;h=6410013b53a3906a25b6522fec08fb24d26df472;hb=5a7eb5b62b485b61ddb80a40ef22f4337cf2289f;hp=19003bc9d09a0d97806d75a77f2823587a5928d2;hpb=f8b321ed9be936455166a5e9297199e84b048526;p=rrdtool.git diff --git a/src/rrd_xport.c b/src/rrd_xport.c index 19003bc..6410013 100644 --- a/src/rrd_xport.c +++ b/src/rrd_xport.c @@ -1,5 +1,5 @@ /**************************************************************************** - * RRDtool 1.2rc7 Copyright by Tobi Oetiker, 1997-2005 + * RRDtool 1.2.5 Copyright by Tobi Oetiker, 1997-2005 **************************************************************************** * rrd_xport.c export RRD data ****************************************************************************/ @@ -9,6 +9,7 @@ #include "rrd_tool.h" #include "rrd_graph.h" #include "rrd_xport.h" +#include "unused.h" #if defined(WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__) #include @@ -30,7 +31,7 @@ int rrd_xport_fn(image_desc_t *, int -rrd_xport(int argc, char **argv, int *xsize, +rrd_xport(int argc, char **argv, int UNUSED(*xsize), time_t *start, time_t *end, /* which time frame do you want ? * will be changed to represent reality */ @@ -46,6 +47,7 @@ rrd_xport(int argc, char **argv, int *xsize, time_t start_tmp=0,end_tmp=0; struct rrd_time_value start_tv, end_tv; char *parsetime_error = NULL; + optind = 0; opterr = 0; /* initialize getopt */ rrd_graph_init(&im);