X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_xport.c;h=aec19d79d67c78c2c1650e49833a98b083636655;hb=9e6db622e8756105c1322481b34650ecbe15da1a;hp=3ba1b521c75e41f2efaef5ddf3b17b26a4b8b290;hpb=fcbf2878a231442f4b62ee95fca39e28f04fc8d2;p=rrdtool.git diff --git a/src/rrd_xport.c b/src/rrd_xport.c index 3ba1b52..aec19d7 100644 --- a/src/rrd_xport.c +++ b/src/rrd_xport.c @@ -1,5 +1,5 @@ /**************************************************************************** - * RRDtool 1.0.37 Copyright Tobias Oetiker, 1997 - 2000 + * RRDtool 1.2.14 Copyright by Tobi Oetiker, 1997-2006 **************************************************************************** * rrd_xport.c export RRD data ****************************************************************************/ @@ -9,8 +9,9 @@ #include "rrd_tool.h" #include "rrd_graph.h" #include "rrd_xport.h" +#include "unused.h" -#ifdef WIN32 +#if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__) #include #include #endif @@ -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);