From: Tomohiro Kusumi Date: Mon, 12 Jun 2017 20:02:11 +0000 (+0300) Subject: binject: don't use void* for pointer arithmetic (gcc) X-Git-Tag: fio-2.21~2 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=052046a1e92bff19ecae277670a59fb726a66b86 binject: don't use void* for pointer arithmetic (gcc) I think gcc extension should be avoided when it can be done by just changing a pointer type. Signed-off-by: Tomohiro Kusumi Signed-off-by: Jens Axboe --- diff --git a/engines/binject.c b/engines/binject.c index 932534a0..792dbbdd 100644 --- a/engines/binject.c +++ b/engines/binject.c @@ -59,11 +59,12 @@ static int pollin_events(struct pollfd *pfds, int fds) return 0; } -static unsigned int binject_read_commands(struct thread_data *td, void *p, +static unsigned int binject_read_commands(struct thread_data *td, void *buf, int left, int *err) { struct fio_file *f; int i, ret, events; + char *p = buf; one_more: events = 0;