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

@ -37,11 +37,11 @@ struct State {
char *outfiles;
char *httpgetfields;
char *uploadfile;
unsigned long infilenum; /* number of files to upload */
unsigned long up; /* upload file counter within a single upload glob */
unsigned long urlnum; /* how many iterations this single URL has with ranges
curl_off_t infilenum; /* number of files to upload */
curl_off_t up; /* upload file counter within a single upload glob */
curl_off_t urlnum; /* how many iterations this single URL has with ranges
etc */
unsigned long li;
curl_off_t li;
};
struct OperationConfig {
@ -317,7 +317,7 @@ struct GlobalConfig {
bool test_event_based;
#endif
bool parallel;
long parallel_max;
unsigned short parallel_max; /* MAX_PARALLEL is the maximum */
bool parallel_connect;
char *help_category; /* The help category, if set */
struct OperationConfig *first;