projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbf448e
)
Use sizeof(char*) instead of sizeof(void*)
author
Tomohiro Kusumi
<kusumi.tomohiro@gmail.com>
Wed, 27 Jul 2016 13:37:10 +0000
(22:37 +0900)
committer
Jens Axboe
<axboe@fb.com>
Wed, 27 Jul 2016 14:29:45 +0000
(08:29 -0600)
Conform to the exact data type though both pointers are
normally expected to be the same size on various archs.
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
options.c
patch
|
blob
|
blame
|
history
diff --git
a/options.c
b/options.c
index 4461643e574750f22dc5b9cf8d8ea38a9b6e0567..4c56dbe1f11767484190efa3148e48954771c901 100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-258,7
+258,7
@@
static int str2error(char *str)
"EINVAL", "ENFILE", "EMFILE", "ENOTTY",
"ETXTBSY","EFBIG", "ENOSPC", "ESPIPE",
"EROFS","EMLINK", "EPIPE", "EDOM", "ERANGE" };
- int i = 0, num = sizeof(err) / sizeof(
void
*);
+ int i = 0, num = sizeof(err) / sizeof(
char
*);
while (i < num) {
if (!strcmp(err[i], str))