aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index ff52e459f..bc6033a36 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -561,7 +561,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option,
/*
* How do access files over FTP.
*/
- data->set.ftp_filemethod = va_arg(param, long);
+ data->set.ftp_filemethod = (curl_ftpfile)va_arg(param, long);
break;
case CURLOPT_NETRC:
/*