projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] strtoul() -> strtol() conversion
[fio.git]
/
parse.c
diff --git
a/parse.c
b/parse.c
index 1e709ddbcb0dda56383ed557954e83d388aed3c1..10d2116e9d95442c5d1e34ad3c5729b9ef441cc3 100644
(file)
--- a/
parse.c
+++ b/
parse.c
@@
-56,8
+56,8
@@
static int str_to_decimal(const char *str, long long *val, int kilo)
if (!len)
return 1;
- *val = strto
u
l(str, NULL, 10);
- if (*val ==
U
LONG_MAX && errno == ERANGE)
+ *val = strtol(str, NULL, 10);
+ if (*val == LONG_MAX && errno == ERANGE)
return 1;
if (kilo)