From: Wolfgang Stöggl Date: Mon, 18 Sep 2017 11:09:21 +0000 (+0200) Subject: Fix error 'optind': undeclared identifier X-Git-Tag: v1.7.1~107^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F821%2Fhead;p=thirdparty%2Frrdtool-1.x.git Fix error 'optind': undeclared identifier - Fixes compilation error, when building under Windows (e.g. VS2015): ..\src\rrd_tune.c(410): error C2065: 'optind': undeclared identifier - Use options.optind instead of optind optind is a member of the struct options --- diff --git a/src/rrd_tune.c b/src/rrd_tune.c index c718febf..214b1fd6 100644 --- a/src/rrd_tune.c +++ b/src/rrd_tune.c @@ -407,7 +407,7 @@ int rrd_tune( } } - optind = handle_modify(&rrd, in_filename, options.argc, options.argv, options.optind + 1, opt_newstep); + options.optind = handle_modify(&rrd, in_filename, options.argc, options.argv, options.optind + 1, opt_newstep); rc = 0; done: if (in_filename && rrdc_is_any_connected()) {