From 6da1fa7f0a8d7e588dc0ea40a5e175edded9a8ac Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 10 Jan 2007 11:27:48 +0100 Subject: [PATCH] [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 --- init.c | 2 +- parse.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/init.c b/init.c index 4add942e..37b84e68 100644 --- a/init.c +++ b/init.c @@ -273,7 +273,7 @@ static struct fio_option options[] = { .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 dc875bd1..edba7fc6 100644 --- a/parse.h +++ b/parse.h @@ -30,7 +30,6 @@ struct fio_option { 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 *); -- 2.25.1