From cf1f46e1ca001dcab81e9116712c3eefefc03fd7 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 7 Apr 2004 07:30:40 +0000 Subject: renamed the strtoofft() macro to curlx_strtoofft() to adjust to the curlx_* concept, and added lib/README.curlx to explain details about it --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main.c b/src/main.c index aaf519ead..36fc298d7 100644 --- a/src/main.c +++ b/src/main.c @@ -1035,7 +1035,7 @@ static int str2offset(curl_off_t *val, char *str) #endif /* this is a duplicate of the function that is also used in libcurl */ - *val = strtoofft(str, NULL, 0); + *val = curlx_strtoofft(str, NULL, 0); if ((*val == LLONG_MAX || *val == LLONG_MIN) && errno == ERANGE) return 1; @@ -1319,7 +1319,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */ { /* We support G, M, K too */ char *unit; - curl_off_t value = strtoofft(nextarg, &unit, 0); + curl_off_t value = curlx_strtoofft(nextarg, &unit, 0); switch(nextarg[strlen(nextarg)-1]) { case 'G': case 'g': -- cgit v1.2.3