return curl_off_t instead of long long, to work on more platforms
authorDaniel Stenberg <daniel@haxx.se>
Thu, 22 Jan 2004 14:31:46 +0000 (14:31 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 22 Jan 2004 14:31:46 +0000 (14:31 +0000)
lib/strtoofft.c
lib/strtoofft.h

index 7b1a55e30b3fa7f97659fc0f3154f1aea305189e..322a753e3f00532d18ce022375877de7cec2a694 100644 (file)
@@ -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;
index 4b6e6b13639f05e4f466c2531c69752031f39362..cd512b0018fa3dbd31fec3396917295e2a4799e6 100644 (file)
@@ -37,7 +37,7 @@
 #if HAVE_STRTOLL
 #define strtoofft strtoll
 #else
-long long Curl_strtoll(const char *nptr, char **endptr, int base);
+curl_off_t Curl_strtoll(const char *nptr, char **endptr, int base);
 #define strtoofft Curl_strtoll
 #define NEED_CURL_STRTOLL
 #endif