/****************************************************************************
- * RRDtool 1.2.6 Copyright by Tobi Oetiker, 1997-2005
+ * RRDtool 1.2.18 Copyright by Tobi Oetiker, 1997-2006
****************************************************************************
* rrd_xport.c export RRD data
****************************************************************************/
#include "rrd_xport.h"
#include "unused.h"
-#if defined(WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__)
+#if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__)
#include <io.h>
#include <fcntl.h>
#endif
{"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;
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 );
}
break;
case '?':
- rrd_set_error("unknown option '%c'", optopt);
+ rrd_set_error("unknown option '%s'",argv[optind-1]);
return -1;
}
}