X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_xport.c;h=06b40568857467aaed87457286ac865e6e9b6e99;hb=2e6c98e893777e4abf7b05cb4ecf81dde088cdb8;hp=129dd30ac3e7c6c5d8c1c647ad24c02e13474dcf;hpb=fefb27848de265750174cab10cfb9aba23d10320;p=rrdtool.git diff --git a/src/rrd_xport.c b/src/rrd_xport.c index 129dd30..06b4056 100644 --- a/src/rrd_xport.c +++ b/src/rrd_xport.c @@ -1,5 +1,5 @@ /**************************************************************************** - * RRDtool 1.2.4 Copyright by Tobi Oetiker, 1997-2005 + * RRDtool 1.2.19 Copyright by Tobi Oetiker, 1997-2007 **************************************************************************** * 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; } }