aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-02-05 09:38:56 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-02-05 09:38:56 +0000
commitf71139750d165dc2b60b7c3584bfd332af6b9231 (patch)
treeaf7aa57edd93f703cd651614e46a64652395d991
parent690b3e58b2a19879f6e94e0f154438fdc186a117 (diff)
options we get as longs need to be typecasted when assigned to prevent
picky compiler warnings
-rw-r--r--lib/url.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/url.c b/lib/url.c
index 9d0b9e97d..32333f6be 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -506,7 +506,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...)
/*
* Parse the $HOME/.netrc file
*/
- data->set.use_netrc = va_arg(param, long);
+ data->set.use_netrc = (enum CURL_NETRC_OPTION)va_arg(param, long);
break;
case CURLOPT_NETRC_FILE:
/*
@@ -557,7 +557,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...)
* Set HTTP time condition. This must be one of the defines in the
* curl/curl.h header file.
*/
- data->set.timecondition = va_arg(param, long);
+ data->set.timecondition = (curl_TimeCond)va_arg(param, long);
break;
case CURLOPT_TIMEVALUE:
/*
@@ -1070,10 +1070,10 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...)
}
}
}
+ break;
#else
return CURLE_SSL_ENGINE_NOTFOUND;
#endif
- break;
case CURLOPT_SSLENGINE_DEFAULT:
/*
* flag to set engine as default.
@@ -1241,7 +1241,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...)
/*
* Set proxy type. HTTP/SOCKS4/SOCKS5
*/
- data->set.proxytype = va_arg(param, long);
+ data->set.proxytype = (curl_proxytype)va_arg(param, long);
break;
case CURLOPT_PRIVATE:
@@ -1269,7 +1269,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...)
/*
* Make FTP transfers attempt to use SSL/TLS.
*/
- data->set.ftp_ssl = va_arg(param, long);
+ data->set.ftp_ssl = (curl_ftpssl)va_arg(param, long);
break;
case CURLOPT_IPRESOLVE: