[PATCH] Fixup ratecycle option
It set .name twice, the last one was supposed to be .help instead.
Also kill options->opt_set, it's not used.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/init.c b/init.c
index 4add942..37b84e6 100644
--- a/init.c
+++ b/init.c
@@ -273,7 +273,7 @@
.name = "ratecycle",
.type = FIO_OPT_INT,
.off1 = td_var_offset(ratecycle),
- .name = "Window average for rate limits (msec)",
+ .help = "Window average for rate limits (msec)",
.def = "1000",
},
{
diff --git a/parse.h b/parse.h
index dc875bd..edba7fc 100644
--- a/parse.h
+++ b/parse.h
@@ -30,7 +30,6 @@
void *cb; /* callback */
const char *help; /* help text for option */
const char *def; /* default setting */
- char opt_set; /* option was set */
};
typedef int (str_cb_fn)(void *, char *);