diff options
author | Kamil Dudka <kdudka@redhat.com> | 2010-05-29 21:28:16 +0200 |
---|---|---|
committer | Kamil Dudka <kdudka@redhat.com> | 2010-05-29 21:28:16 +0200 |
commit | 20ae9d4f716cd898ca1aa47b7ea0664ebc57b2ba (patch) | |
tree | 0d1a3cf745a9dfcd15317a8518e8d5c1e6b9d436 /lib/ftplistparser.c | |
parent | 35955179c6c3935e9b876090e29bb90c5740838f (diff) | |
download | curl-20ae9d4f716cd898ca1aa47b7ea0664ebc57b2ba.tar.gz |
strtoofft: rename CURL_LLONG_MIN -> CURL_OFF_T_MIN
... and CURL_LLONG_MAX -> CURL_OFF_T_MAX
Diffstat (limited to 'lib/ftplistparser.c')
-rw-r--r-- | lib/ftplistparser.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ftplistparser.c b/lib/ftplistparser.c index 947b71417..95adfe68d 100644 --- a/lib/ftplistparser.c +++ b/lib/ftplistparser.c @@ -590,8 +590,8 @@ size_t ftp_parselist(char *buffer, size_t size, size_t nmemb, void *connptr) curl_off_t fsize; finfo->b_data[parser->item_offset + parser->item_length - 1] = 0; fsize = curlx_strtoofft(finfo->b_data+parser->item_offset, &p, 10); - if(p[0] == '\0' && fsize != CURL_LLONG_MAX && - fsize != CURL_LLONG_MIN) { + if(p[0] == '\0' && fsize != CURL_OFF_T_MAX && + fsize != CURL_OFF_T_MIN) { parser->file_data->flags |= CURLFINFOFLAG_KNOWN_SIZE; parser->file_data->size = fsize; } @@ -918,8 +918,8 @@ size_t ftp_parselist(char *buffer, size_t size, size_t nmemb, void *connptr) finfo->size = curlx_strtoofft(finfo->b_data + parser->item_offset, &endptr, 10); if(!*endptr) { - if(finfo->size == CURL_LLONG_MAX || - finfo->size == CURL_LLONG_MIN) { + if(finfo->size == CURL_OFF_T_MAX || + finfo->size == CURL_OFF_T_MIN) { if(errno == ERANGE) { PL_ERROR(conn, CURLE_FTP_BAD_FILE_LIST); return bufflen; |