tool_urlglob: use curl_off_t instead of longs

To handle more globs better (especially on Windows)

Closes #11224
This commit is contained in:
Daniel Stenberg 2023-05-30 14:06:15 +02:00
parent a1730b6106
commit 0807fd72f9
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
5 changed files with 31 additions and 26 deletions

View file

@ -205,7 +205,7 @@ static curl_off_t VmsSpecialSize(const char *name,
struct per_transfer *transfers; /* first node */
static struct per_transfer *transfersl; /* last node */
static long all_pers;
static curl_off_t all_pers;
/* add_per_transfer creates a new 'per_transfer' node in the linked
list of transfers */
@ -806,7 +806,7 @@ static CURLcode single_transfer(struct GlobalConfig *global,
}
{
unsigned long urlnum;
curl_off_t urlnum;
if(!state->up && !infiles)
Curl_nop_stmt;