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 --- lib/ftp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/ftp.c') diff --git a/lib/ftp.c b/lib/ftp.c index dccfea3ff..d9028d458 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -961,7 +961,7 @@ CURLcode ftp_getsize(struct connectdata *conn, char *file, if(ftpcode == 213) { /* get the size from the ascii string: */ - *size = strtoofft(buf+4, NULL, 0); + *size = curlx_strtoofft(buf+4, NULL, 0); } else return CURLE_FTP_COULDNT_GET_SIZE; @@ -1849,10 +1849,10 @@ CURLcode Curl_ftp_nextconnect(struct connectdata *conn) char *ptr; char *ptr2; - from=strtoofft(conn->range, &ptr, 0); + from=curlx_strtoofft(conn->range, &ptr, 0); while(ptr && *ptr && (isspace((int)*ptr) || (*ptr=='-'))) ptr++; - to=strtoofft(ptr, &ptr2, 0); + to=curlx_strtoofft(ptr, &ptr2, 0); if(ptr == ptr2) { /* we didn't get any digit */ to=-1; @@ -2071,7 +2071,7 @@ CURLcode Curl_ftp_nextconnect(struct connectdata *conn) /* only if we have nothing but digits: */ if(bytes++) { /* get the number! */ - size = strtoofft(bytes, NULL, 0); + size = curlx_strtoofft(bytes, NULL, 0); } } -- cgit v1.2.3