X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=program%2Fsrc%2Frrd_xport.c;h=6d174b67cc2332b521e89f258f164ff26c8183bf;hb=b8f92c0e0a77c55023fbd0005cbe9176a1643a73;hp=6410013b53a3906a25b6522fec08fb24d26df472;hpb=e970cba98138b8e0be288337df69aa0599a7993c;p=rrdtool-all.git diff --git a/program/src/rrd_xport.c b/program/src/rrd_xport.c index 6410013b..6d174b67 100644 --- a/program/src/rrd_xport.c +++ b/program/src/rrd_xport.c @@ -1,5 +1,5 @@ /**************************************************************************** - * RRDtool 1.2.5 Copyright by Tobi Oetiker, 1997-2005 + * RRDtool 1.2.18 Copyright by Tobi Oetiker, 1997-2006 **************************************************************************** * rrd_xport.c export RRD data ****************************************************************************/ @@ -11,7 +11,7 @@ #include "rrd_xport.h" #include "unused.h" -#if defined(WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__) +#if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__) #include #include #endif @@ -61,6 +61,7 @@ rrd_xport(int argc, char **argv, int UNUSED(*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; @@ -76,6 +77,8 @@ rrd_xport(int argc, char **argv, int UNUSED(*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 ); @@ -96,7 +99,7 @@ rrd_xport(int argc, char **argv, int UNUSED(*xsize), } break; case '?': - rrd_set_error("unknown option '%c'", optopt); + rrd_set_error("unknown option '%s'",argv[optind-1]); return -1; } }