summaryrefslogtreecommitdiff
path: root/lib/strtoofft.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-01-22 14:31:46 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-01-22 14:31:46 +0000
commitad7e26b1401238d50b8bc7e98b6cf7660f03d4e6 (patch)
tree9f69cd36c61e2cd19f4b470e705fd01fabcefed9 /lib/strtoofft.c
parentf39749cee4e06d171f2ed39f31cc4571cd6ed43d (diff)
downloadcurl-ad7e26b1401238d50b8bc7e98b6cf7660f03d4e6.tar.gz
return curl_off_t instead of long long, to work on more platforms
Diffstat (limited to 'lib/strtoofft.c')
-rw-r--r--lib/strtoofft.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/strtoofft.c b/lib/strtoofft.c
index 7b1a55e30..322a753e3 100644
--- a/lib/strtoofft.c
+++ b/lib/strtoofft.c
@@ -35,15 +35,15 @@ static int get_char(char c, int base);
* Emulated version of the strtoll function. This extracts a long long
* value from the given input string and returns it.
*/
-long long
+curl_off_t
Curl_strtoll(const char *nptr, char **endptr, int base)
{
char *end;
int is_negative = 0;
int overflow;
int i;
- long long value = 0;
- long long newval;
+ curl_off_t value = 0;
+ curl_off_t newval;
/* Skip leading whitespace. */
end = (char *)nptr;