X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_xport.c;h=ef63196b48b3ebd2b4c5aa0af9d54f4976e7dce8;hb=37329a5f991870e8f47c8a52f6dd594fef813de6;hp=2a0bf7605d5b294617f3718ba4f9f877ab1c4128;hpb=35f5945e114df7324be00de01bcde77e096a2373;p=rrdtool.git diff --git a/src/rrd_xport.c b/src/rrd_xport.c index 2a0bf76..ef63196 100644 --- a/src/rrd_xport.c +++ b/src/rrd_xport.c @@ -1,5 +1,5 @@ /**************************************************************************** - * RRDtool 1.2.0 Copyright by Tobi Oetiker, 1997-2005 + * RRDtool 1.2.6 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);