diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-01-23 12:50:53 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-01-23 12:50:53 +0000 |
commit | 42274074386bfba482da9041320d7d8da0036213 (patch) | |
tree | 4cf1dcf6284c86ce302bd8441c7ead6020205c01 /src | |
parent | 6e29f5d1dfc5ea86986283952c8f9bd5304545a2 (diff) |
Use Curl_strtoll() if needed. This is not a library call, this is just the
same code as the library uses for its internal function. Thus the captical
C in the beginning.
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c index ab078de11..cbec21194 100644 --- a/src/main.c +++ b/src/main.c @@ -1010,8 +1010,8 @@ static int str2offset(curl_off_t *val, char *str) #ifdef HAVE_STRTOLL *val = strtoll(str, NULL, 0); #else - /* TODO: Handle strtoll stuff...sigh... */ -#error "lack of strtoll() needs fixing" + /* this is a duplicate of the function that is also used in libcurl */ + *val = Curl_strtoll(str, NULL, 0; #endif if ((*val == LLONG_MAX || *val == LLONG_MIN) && errno == ERANGE) @@ -2068,7 +2068,7 @@ static int parseconfig(const char *filename, #endif /* pass spaces and separator(s) */ - while(isspace((int)*line) || isseparator(*line)) + while(*line && (isspace((int)*line) || isseparator(*line))) line++; /* the parameter starts here (unless quoted) */ |