Skip to content

Commit a9109a8

Browse files
committed
CURLOPT_FTP_FILEMETHOD also wants a long argument
CURLFTPMETHOD_NOCWD needs to be cast to long to avoid a warning on recent libcurl.
1 parent 7f59b51 commit a9109a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hfile_libcurl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,8 @@ libcurl_open(const char *url, const char *modes, http_headers *headers)
12221222

12231223
// Avoid many repeated CWD calls with FTP, instead requesting the filename
12241224
// by full path (but not strictly compliant with RFC1738).
1225-
err |= curl_easy_setopt(fp->easy, CURLOPT_FTP_FILEMETHOD, CURLFTPMETHOD_NOCWD);
1225+
err |= curl_easy_setopt(fp->easy, CURLOPT_FTP_FILEMETHOD,
1226+
(long) CURLFTPMETHOD_NOCWD);
12261227

12271228
if (mode == 'r') {
12281229
err |= curl_easy_setopt(fp->easy, CURLOPT_WRITEFUNCTION, recv_callback);

0 commit comments

Comments
 (0)