From: Jens Axboe Date: Wed, 10 Jan 2007 15:02:32 +0000 (+0100) Subject: [PATCH] strtoul() -> strtol() conversion X-Git-Tag: fio-1.12~169 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=cda866caa9b9f6598e264d24a8997d24f3c2b1c7 [PATCH] strtoul() -> strtol() conversion Signed-off-by: Jens Axboe --- diff --git a/parse.c b/parse.c index 1e709ddb..10d2116e 100644 --- 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 = strtoul(str, NULL, 10); - if (*val == ULONG_MAX && errno == ERANGE) + *val = strtol(str, NULL, 10); + if (*val == LONG_MAX && errno == ERANGE) return 1; if (kilo)