]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
url.c: use the preferred symbol name: *READDATA
authorMarcel Raad <marcelraad@users.sf.net>
Tue, 22 Jul 2014 09:26:16 +0000 (11:26 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 22 Jul 2014 09:27:51 +0000 (11:27 +0200)
with CURL_NO_OLDIES defined, it doesn't compile because this deprecated
symbol (*INFILE) is used

Bug: http://curl.haxx.se/bug/view.cgi?id=1398

lib/url.c

index 1d0597552be143fc5c3cde9873b8b1ecc8735b22..c0ec630c664f6a38dabbedde6e2a2d6d5071e076 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -1487,7 +1487,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option,
     data->set.ftp_skip_ip = (0 != va_arg(param, long))?TRUE:FALSE;
     break;
 
-  case CURLOPT_INFILE:
+  case CURLOPT_READDATA:
     /*
      * FILE pointer to read the file to be uploaded from. Or possibly
      * used as argument to the read callback.