summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-02-03 10:57:42 +0000
committerYang Tse <yangsita@gmail.com>2010-02-03 10:57:42 +0000
commit3205ac35b0ef6587bf53d23e9a36d7fcb251d875 (patch)
tree3a8e972b12ba69de0ec2089c62cd511ccdac11b8 /src
parent381a4d6efec42db823cbd5946514c275bca7d2d1 (diff)
downloadcurl-3205ac35b0ef6587bf53d23e9a36d7fcb251d875.tar.gz
Fix progressmode Configurable struct member data type. Changed to
'int' which fits better with existing CURL_PROGRESS_* definitions.
Diffstat (limited to 'src')
-rw-r--r--src/main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index c5f904f13..c37988351 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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 */