summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomohiro Kusumi <tkusumi@tuxera.com>2017-01-19 02:38:27 +0900
committerJens Axboe <axboe@fb.com>2017-01-19 16:09:52 -0700
commitd4dbd376854bbbd90042216e27290aedbb73f405 (patch)
tree011c33cf8144f5659aa33c41a91aaaa82780d22d
parent53b5693d04b0de440ce3eb1fa22834ef46d0a4e3 (diff)
Change td_var() to take void* for the first arg
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>
-rw-r--r--parse.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/parse.h b/parse.h
index 54e3948..fb6abd1 100644
--- 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;