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 | |
parent | 35955179c6c3935e9b876090e29bb90c5740838f (diff) |
strtoofft: rename CURL_LLONG_MIN -> CURL_OFF_T_MIN
... and CURL_LLONG_MAX -> CURL_OFF_T_MAX
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ftplistparser.c | 8 | ||||
-rw-r--r-- | lib/strtoofft.c | 4 | ||||
-rw-r--r-- | lib/strtoofft.h | 6 |
3 files changed, 9 insertions, 9 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; diff --git a/lib/strtoofft.c b/lib/strtoofft.c index f75eb8a44..61ff05bed 100644 --- a/lib/strtoofft.c +++ b/lib/strtoofft.c @@ -131,9 +131,9 @@ curlx_strtoll(const char *nptr, char **endptr, int base) } else { if(is_negative) - value = CURL_LLONG_MIN; + value = CURL_OFF_T_MIN; else - value = CURL_LLONG_MAX; + value = CURL_OFF_T_MAX; SET_ERRNO(ERANGE); } diff --git a/lib/strtoofft.h b/lib/strtoofft.h index c791bc96e..8208e87fa 100644 --- a/lib/strtoofft.h +++ b/lib/strtoofft.h @@ -58,11 +58,11 @@ #endif #if (CURL_SIZEOF_CURL_OFF_T == 4) -# define CURL_LLONG_MAX CURL_OFF_T_C(0x7FFFFFFF) +# define CURL_OFF_T_MAX CURL_OFF_T_C(0x7FFFFFFF) #else /* assume CURL_SIZEOF_CURL_OFF_T == 8 */ -# define CURL_LLONG_MAX CURL_OFF_T_C(0x7FFFFFFFFFFFFFFF) +# define CURL_OFF_T_MAX CURL_OFF_T_C(0x7FFFFFFFFFFFFFFF) #endif -#define CURL_LLONG_MIN (-CURL_LLONG_MAX - CURL_OFF_T_C(1)) +#define CURL_OFF_T_MIN (-CURL_OFF_T_MAX - CURL_OFF_T_C(1)) #endif /* HEADER_CURL_STRTOOFFT_H */ |