projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be66071
)
sg: don't use void* for pointer arithmetic (gcc)
author
Tomohiro Kusumi
<tkusumi@tuxera.com>
Mon, 12 Jun 2017 20:02:09 +0000
(23:02 +0300)
committer
Jens Axboe
<axboe@fb.com>
Mon, 12 Jun 2017 20:51:01 +0000
(14:51 -0600)
I think gcc extension should be avoided when it can be done by
just changing a pointer type.
Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
engines/sg.c
patch
|
blob
|
blame
|
history
diff --git
a/engines/sg.c
b/engines/sg.c
index 833d9205470075c9d2d0354fc67981bb7e88449e..4540b57354cd1c1d02e84faa429cd6e069aa376c 100644
(file)
--- a/
engines/sg.c
+++ b/
engines/sg.c
@@
-124,7
+124,7
@@
static int fio_sgio_getevents(struct thread_data *td, unsigned int min,
}
while (left) {
-
void
*p;
+
char
*p;
dprint(FD_IO, "sgio_getevents: sd %p: left=%d\n", sd, left);