Skip to content
Snippets Groups Projects
Commit 3205ac35 authored by Yang Tse's avatar Yang Tse
Browse files

Fix progressmode Configurable struct member data type. Changed to
'int' which fits better with existing CURL_PROGRESS_* definitions.
parent 381a4d6e
No related branches found
No related tags found
No related merge requests found
......@@ -546,7 +546,7 @@ struct Configurable {
trace tracetype;
bool tracetime; /* include timestamp? */
long httpversion;
bool progressmode;
int progressmode;
bool nobuffer;
bool readbusy; /* set when reading input returns EAGAIN */
bool globoff;
......@@ -2300,7 +2300,10 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
}
break;
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;
case '0':
/* HTTP version 1.0 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment