projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e75f64
)
[PATCH] strtoul() -> strtol() conversion
author
Jens Axboe
<jens.axboe@oracle.com>
Wed, 10 Jan 2007 15:02:32 +0000
(16:02 +0100)
committer
Jens Axboe
<jens.axboe@oracle.com>
Wed, 10 Jan 2007 15:02:32 +0000
(16:02 +0100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
parse.c
patch
|
blob
|
blame
|
history
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)