From: Yang Tse Date: Wed, 3 Feb 2010 10:57:42 +0000 (+0000) Subject: Fix progressmode Configurable struct member data type. Changed to X-Git-Tag: curl-7_20_0~22 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3205ac35b0ef6587bf53d23e9a36d7fcb251d875;p=thirdparty%2Fcurl.git Fix progressmode Configurable struct member data type. Changed to 'int' which fits better with existing CURL_PROGRESS_* definitions. --- diff --git a/src/main.c b/src/main.c index c5f904f132..c379883515 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 */