cast the va_arg() assignment to ftp_filemethod properly
authorDaniel Stenberg <daniel@haxx.se>
Wed, 30 Nov 2005 13:09:48 +0000 (13:09 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 30 Nov 2005 13:09:48 +0000 (13:09 +0000)
lib/url.c

index ff52e45..bc6033a 100644 (file)
--- 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:
     /*