summaryrefslogtreecommitdiffstats
path: root/Source/CTest/Curl/url.c
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-05-12 21:11:45 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2003-05-12 21:11:45 (GMT)
commit13281642080871ee875cf243c9004178342fe1ef (patch)
tree9d51ee39075ab44a2ecb9db42a9626c026bf2e06 /Source/CTest/Curl/url.c
parent70d3fe1a34eca9532e3ea9d6eb5171af09c06ad7 (diff)
downloadCMake-13281642080871ee875cf243c9004178342fe1ef.zip
CMake-13281642080871ee875cf243c9004178342fe1ef.tar.gz
CMake-13281642080871ee875cf243c9004178342fe1ef.tar.bz2
ERR: Remove a bunch of warnings on SGI
Diffstat (limited to 'Source/CTest/Curl/url.c')
-rw-r--r--Source/CTest/Curl/url.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/CTest/Curl/url.c b/Source/CTest/Curl/url.c
index b7460cd..d94fd44 100644
--- a/Source/CTest/Curl/url.c
+++ b/Source/CTest/Curl/url.c
@@ -476,7 +476,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_FOLLOWLOCATION:
/*
@@ -513,7 +513,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:
/*
@@ -1086,7 +1086,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:
@@ -1409,7 +1409,7 @@ static int handleSock5Proxy(
return 1;
}
- result=Curl_read(conn, sock, (char *)socksreq, 2, &actualread);
+ result=(CURLcode)Curl_read(conn, sock, (char *)socksreq, 2, &actualread);
if ((result != CURLE_OK) || (actualread != 2)) {
failf(conn->data, "Unable to receive initial SOCKS5 response.");
return 1;
@@ -1452,7 +1452,7 @@ static int handleSock5Proxy(
return 1;
}
- result=Curl_read(conn, sock, (char *)socksreq, 2, &actualread);
+ result=(CURLcode)Curl_read(conn, sock, (char *)socksreq, 2, &actualread);
if ((result != CURLE_OK) || (actualread != 2)) {
failf(conn->data, "Unable to receive SOCKS5 sub-negotiation response.");
return 1;
@@ -1542,7 +1542,7 @@ static int handleSock5Proxy(
return 1;
}
- result = Curl_read(conn, sock, (char *)socksreq, packetsize, &actualread);
+ result = (CURLcode)Curl_read(conn, sock, (char *)socksreq, packetsize, &actualread);
if ((result != CURLE_OK) || (actualread != packetsize)) {
failf(conn->data, "Failed to receive SOCKS5 connect request ack.");
return 1;