X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=verify-state.h;h=6da1585b24657a60d7357d4f04f6f445f01544f3;hp=e46265e48d7a6c4ddbbac34a458e26d3272d60da;hb=04ba61dfa67784d4dfcc22a2b3de7ede28e22e40;hpb=c7334fa3f3be87854354044615b0c0e473c50713 diff --git a/verify-state.h b/verify-state.h index e46265e4..6da1585b 100644 --- a/verify-state.h +++ b/verify-state.h @@ -4,6 +4,7 @@ #include #include #include +#include "lib/nowarn_snprintf.h" struct thread_rand32_state { uint32_t s[4]; @@ -77,7 +78,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, @@ -101,7 +102,7 @@ static inline void verify_state_gen_name(char *out, size_t size, name++; } while (1); - snprintf(out, size, "%s-%s-%d-verify.state", prefix, ename, num); + nowarn_snprintf(out, size, "%s-%s-%d-verify.state", prefix, ename, num); out[size - 1] = '\0'; }