]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Argument to CURLMOPT_MAXCONNECTS must be a long
authorDan Fandrich <dan@coneharvesters.com>
Mon, 22 Sep 2008 17:27:24 +0000 (17:27 +0000)
committerDan Fandrich <dan@coneharvesters.com>
Mon, 22 Sep 2008 17:27:24 +0000 (17:27 +0000)
docs/examples/10-at-a-time.c

index 13ff196c85cfcace499cdb7401a4f7db08fe4a31..14b6e93afe7379b685561647003519798920be46 100644 (file)
@@ -113,7 +113,7 @@ int main(void)
 
   /* we can optionally limit the total amount of connections this multi handle
      uses */
-  curl_multi_setopt(cm, CURLMOPT_MAXCONNECTS, MAX);
+  curl_multi_setopt(cm, CURLMOPT_MAXCONNECTS, (long)MAX);
 
   for (C = 0; C < MAX; ++C) {
     init(cm, C);