Change td_var() to take void* for the first arg
authorTomohiro Kusumi <tkusumi@tuxera.com>
Wed, 18 Jan 2017 17:38:27 +0000 (02:38 +0900)
committerJens Axboe <axboe@fb.com>
Thu, 19 Jan 2017 23:09:52 +0000 (16:09 -0700)
Callers don't always pass thread_options* to td_var(),
nor is it dependent on a certain structure type,
so just take void* without pointless cast.

Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
parse.h

diff --git a/parse.h b/parse.h
index 54e3948338fb5c2ab9a8c5921c2eaddc353dee83..fb6abd1b22a21447562acd5b8d02014be95ca0bd 100644 (file)
--- a/parse.h
+++ b/parse.h
@@ -107,8 +107,7 @@ typedef int (fio_opt_str_val_fn)(void *, long long *);
 typedef int (fio_opt_int_fn)(void *, int *);
 
 struct thread_options;
-static inline void *td_var(struct thread_options *to, struct fio_option *o,
-                          unsigned int offset)
+static inline void *td_var(void *to, struct fio_option *o, unsigned int offset)
 {
        void *ret;