From: Tomohiro Kusumi Date: Wed, 18 Jan 2017 17:38:27 +0000 (+0900) Subject: Change td_var() to take void* for the first arg X-Git-Tag: fio-2.18~51 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=d4dbd376854bbbd90042216e27290aedbb73f405 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 --- 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;