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 e9e20a8..9592e0f 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 1aca064..7f37309 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 8278631..c60b2ca 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 c013ac2..7aab3b1 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 3318b9b..6015d2f 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 c5cf603..0e8bd2f 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);