X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_xport.c;h=ef964a039ad24eb3733480549d48110621658980;hb=4af79d1fe0fbb9655cf28a0989d2e98b94b37460;hp=19c2067a23dc2d654672b6953c2e336e3268551d;hpb=705c8b1988cda51a6d8d34215e3fbf3c12a9aa2a;p=rrdtool.git diff --git a/src/rrd_xport.c b/src/rrd_xport.c index 19c2067..ef964a0 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.23 Copyright by Tobi Oetiker, 1997-2007 **************************************************************************** * 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" -#if defined(WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__) +#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 */ @@ -60,6 +61,7 @@ rrd_xport(int argc, char **argv, int *xsize, {"end", required_argument, 0, 'e'}, {"maxrows", required_argument, 0, 'm'}, {"step", required_argument, 0, 261}, + {"enumds", no_argument, 0, 262}, /* these are handled in the frontend ... */ {0,0,0,0} }; int option_index = 0; @@ -75,6 +77,8 @@ rrd_xport(int argc, char **argv, int *xsize, case 261: im.step = atoi(optarg); break; + case 262: + break; case 's': if ((parsetime_error = parsetime(optarg, &start_tv))) { rrd_set_error( "start time: %s", parsetime_error ); @@ -95,7 +99,7 @@ rrd_xport(int argc, char **argv, int *xsize, } break; case '?': - rrd_set_error("unknown option '%c'", optopt); + rrd_set_error("unknown option '%s'",argv[optind-1]); return -1; } }