From a657fbfb112cc183a8cc6c1e9d62aa75eec4c327 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wolfgang=20St=C3=B6ggl?= Date: Mon, 18 Sep 2017 13:09:21 +0200 Subject: [PATCH] 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 --- src/rrd_tune.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) { -- 2.47.2