[PATCH] Fixup ratecycle option
authorJens Axboe <jens.axboe@oracle.com>
Wed, 10 Jan 2007 10:27:48 +0000 (11:27 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 10 Jan 2007 10:27:48 +0000 (11:27 +0100)
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>
init.c
parse.h

diff --git a/init.c b/init.c
index 4add942ef823ea2fe776aab45b32ecfb0c7da263..37b84e68bb1ded485f828e4843bfeacbd3863e0c 100644 (file)
--- 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   = "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",
        },
        {
                .def    = "1000",
        },
        {
diff --git a/parse.h b/parse.h
index dc875bd1a14d81ee950007f1f62e196316ab0f3d..edba7fc6b0256261906b6c4820a3899dc71281ed 100644 (file)
--- 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 */
        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 *);
 };
 
 typedef int (str_cb_fn)(void *, char *);