X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=verify.c;h=db6e17e4def8f60f556b5fca4c1082f107f46d3f;hb=53a7af851836;hp=ffd8707fc44cb3e2cc7c8edb39212c217c5dd5c1;hpb=22bcb265833f263facd58bcef3d8a159c554460e;p=fio.git diff --git a/verify.c b/verify.c index ffd8707f..db6e17e4 100644 --- a/verify.c +++ b/verify.c @@ -252,7 +252,7 @@ static void dump_buf(char *buf, unsigned int len, unsigned long long offset, memset(fname, 0, sizeof(fname)); if (aux_path) - sprintf(fname, "%s%s", aux_path, FIO_OS_PATH_SEPARATOR); + sprintf(fname, "%s%c", aux_path, FIO_OS_PATH_SEPARATOR); strncpy(fname + strlen(fname), basename(ptr), buf_left - 1); @@ -388,7 +388,7 @@ static int verify_io_u_pattern(struct verify_header *hdr, struct vcont *vc) (void)paste_format_inplace(pattern, pattern_size, td->o.verify_fmt, td->o.verify_fmt_sz, io_u); - buf = (void *) hdr + header_size; + buf = (char *) hdr + header_size; len = get_hdr_inc(td, io_u) - header_size; mod = (get_hdr_inc(td, io_u) * vc->hdr_num + header_size) % pattern_size; @@ -1188,9 +1188,10 @@ static void populate_hdr(struct thread_data *td, struct io_u *io_u, unsigned int header_len) { unsigned int data_len; - void *data, *p; + void *data; + char *p; - p = (void *) hdr; + p = (char *) hdr; fill_hdr(td, io_u, hdr, header_num, header_len, io_u->rand_seed); @@ -1725,7 +1726,7 @@ void verify_save_state(int mask) char prefix[PATH_MAX]; if (aux_path) - sprintf(prefix, "%s%slocal", aux_path, FIO_OS_PATH_SEPARATOR); + sprintf(prefix, "%s%clocal", aux_path, FIO_OS_PATH_SEPARATOR); else strcpy(prefix, "local");