mirror of https://github.com/moparisthebest/curl
Fix progressmode Configurable struct member data type. Changed to
'int' which fits better with existing CURL_PROGRESS_* definitions.
This commit is contained in:
parent
381a4d6efe
commit
3205ac35b0
|
@ -546,7 +546,7 @@ struct Configurable {
|
||||||
trace tracetype;
|
trace tracetype;
|
||||||
bool tracetime; /* include timestamp? */
|
bool tracetime; /* include timestamp? */
|
||||||
long httpversion;
|
long httpversion;
|
||||||
bool progressmode;
|
int progressmode;
|
||||||
bool nobuffer;
|
bool nobuffer;
|
||||||
bool readbusy; /* set when reading input returns EAGAIN */
|
bool readbusy; /* set when reading input returns EAGAIN */
|
||||||
bool globoff;
|
bool globoff;
|
||||||
|
@ -2300,7 +2300,10 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case '#': /* --progress-bar */
|
case '#': /* --progress-bar */
|
||||||
config->progressmode = (bool)(toggle?CURL_PROGRESS_BAR:0);
|
if(toggle)
|
||||||
|
config->progressmode = CURL_PROGRESS_BAR;
|
||||||
|
else
|
||||||
|
config->progressmode = CURL_PROGRESS_STATS;
|
||||||
break;
|
break;
|
||||||
case '0':
|
case '0':
|
||||||
/* HTTP version 1.0 */
|
/* HTTP version 1.0 */
|
||||||
|
|
Loading…
Reference in New Issue