]> granicus.if.org Git - curl/commitdiff
tests: Use CURLOPT_READDATA instead of the obsolete CURLOPT_INFILE
authorDan Fandrich <dan@coneharvesters.com>
Tue, 17 Jun 2014 23:17:23 +0000 (01:17 +0200)
committerDan Fandrich <dan@coneharvesters.com>
Tue, 17 Jun 2014 23:17:23 +0000 (01:17 +0200)
tests/libtest/lib505.c
tests/libtest/lib508.c
tests/libtest/lib510.c
tests/libtest/lib513.c
tests/libtest/lib541.c
tests/libtest/lib579.c

index e9e20a8794bd64d75f627c6cb012a9602d86e697..9592e0fa946438c14bd9252e5ac5f13cc1e44713 100644 (file)
@@ -126,7 +126,7 @@ int test(char *URL)
   test_setopt(curl, CURLOPT_POSTQUOTE, headerlist);
 
   /* now specify which file to upload */
-  test_setopt(curl, CURLOPT_INFILE, hd_src);
+  test_setopt(curl, CURLOPT_READDATA, hd_src);
 
   /* and give the size of the upload (optional) */
   test_setopt(curl, CURLOPT_INFILESIZE_LARGE,
index 1aca064e9bc45ef7e4d0c2b08be8ab85e354575f..7f37309207478963078df489d352c0cb712d619c 100644 (file)
@@ -86,7 +86,7 @@ int test(char *URL)
   test_setopt(curl, CURLOPT_READFUNCTION, read_callback);
 
   /* pointer to pass to our read function */
-  test_setopt(curl, CURLOPT_INFILE, &pooh);
+  test_setopt(curl, CURLOPT_READDATA, &pooh);
 
   /* get verbose debug output please */
   test_setopt(curl, CURLOPT_VERBOSE, 1L);
index 8278631c13602f75788525a893cbf8ef9d2d8c66..c60b2caf619769e50ae72bcb845c5061e38b88b8 100644 (file)
@@ -97,7 +97,7 @@ int test(char *URL)
   test_setopt(curl, CURLOPT_READFUNCTION, read_callback);
 
   /* pointer to pass to our read function */
-  test_setopt(curl, CURLOPT_INFILE, &pooh);
+  test_setopt(curl, CURLOPT_READDATA, &pooh);
 
   /* get verbose debug output please */
   test_setopt(curl, CURLOPT_VERBOSE, 1L);
index c013ac258acf056d730b98a627920e84556193fe..7aab3b1c8dc40e22652a59872dfd46f781c6d676 100644 (file)
@@ -61,7 +61,7 @@ int test(char *URL)
   test_setopt(curl, CURLOPT_READFUNCTION, read_callback);
 
   /* pointer to pass to our read function */
-  test_setopt(curl, CURLOPT_INFILE, NULL);
+  test_setopt(curl, CURLOPT_READDATA, NULL);
 
   /* get verbose debug output please */
   test_setopt(curl, CURLOPT_VERBOSE, 1L);
index 3318b9b8b67979377d6058ff77f334e4dce8f704..6015d2f06a6c6c75a0d0de55b654bd0448366cb5 100644 (file)
@@ -96,7 +96,7 @@ int test(char *URL)
   test_setopt(curl,CURLOPT_URL, URL);
 
   /* now specify which file to upload */
-  test_setopt(curl, CURLOPT_INFILE, hd_src);
+  test_setopt(curl, CURLOPT_READDATA, hd_src);
 
   /* Now run off and do what you've been told! */
   res = curl_easy_perform(curl);
index c5cf603bbf0ba14d0b2145067d88621415ccd774..0e8bd2f15326dd057d3bffd60ecbaedc2ea519dc 100644 (file)
@@ -126,7 +126,7 @@ int test(char *URL)
   test_setopt(curl, CURLOPT_READFUNCTION, read_callback);
 
   /* pointer to pass to our read function */
-  test_setopt(curl, CURLOPT_INFILE, &pooh);
+  test_setopt(curl, CURLOPT_READDATA, &pooh);
 
   /* get verbose debug output please */
   test_setopt(curl, CURLOPT_VERBOSE, 1L);