From d4dbd376854bbbd90042216e27290aedbb73f405 Mon Sep 17 00:00:00 2001 From: Tomohiro Kusumi Date: Thu, 19 Jan 2017 02:38:27 +0900 Subject: [PATCH] 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 Signed-off-by: Jens Axboe --- parse.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/parse.h b/parse.h index 54e39483..fb6abd1b 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; -- 2.25.1