]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Fix progressmode Configurable struct member data type. Changed to
authorYang Tse <yangsita@gmail.com>
Wed, 3 Feb 2010 10:57:42 +0000 (10:57 +0000)
committerYang Tse <yangsita@gmail.com>
Wed, 3 Feb 2010 10:57:42 +0000 (10:57 +0000)
'int' which fits better with existing CURL_PROGRESS_* definitions.

src/main.c

index c5f904f1329fc76cd4247ca40b6e271e62369a6f..c379883515c1adefa13ae6d2136868199a833f96 100644 (file)
@@ -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 */