X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=verify-state.h;h=1586f63fb0f0a61f7eea2a6db90876b24f895960;hp=901aa0a47bcec6d016485e4c6b518c8fa65171d0;hb=969357b0f78cc16f85692638cdabd8e5f7c9d2a1;hpb=ecfd2bb08cc87bc9a1b3d612258f1fdfb4d09698 diff --git a/verify-state.h b/verify-state.h index 901aa0a4..1586f63f 100644 --- a/verify-state.h +++ b/verify-state.h @@ -3,6 +3,7 @@ #include #include +#include struct thread_rand32_state { uint32_t s[4]; @@ -76,7 +77,7 @@ static inline size_t thread_io_list_sz(struct thread_io_list *s) static inline struct thread_io_list *io_list_next(struct thread_io_list *s) { - return (void *) s + thread_io_list_sz(s); + return (struct thread_io_list *)((char *) s + thread_io_list_sz(s)); } static inline void verify_state_gen_name(char *out, size_t size,