summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-01-17 17:27:09 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2003-01-17 17:27:09 (GMT)
commitd9324c178bbfa5e2ef1dcabb6ace504fe3c94328 (patch)
tree412a4c0551fe8b5b3079a844441b421f9b595fb8 /Source
parent8142fe343fc333c4a580eda37888f03d79212cf1 (diff)
downloadCMake-d9324c178bbfa5e2ef1dcabb6ace504fe3c94328.zip
CMake-d9324c178bbfa5e2ef1dcabb6ace504fe3c94328.tar.gz
CMake-d9324c178bbfa5e2ef1dcabb6ace504fe3c94328.tar.bz2
Fix proxy code and fix comments to be C comments
Diffstat (limited to 'Source')
-rw-r--r--Source/CTest/Curl/Testing/curltest.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/CTest/Curl/Testing/curltest.c b/Source/CTest/Curl/Testing/curltest.c
index 0a15d4b..1be0f19 100644
--- a/Source/CTest/Curl/Testing/curltest.c
+++ b/Source/CTest/Curl/Testing/curltest.c
@@ -46,15 +46,15 @@ int GetWebFile(void)
proxy_type = 1;
if (getenv("HTTP_PROXY_PORT") )
{
- sprintf("%s:%s", getenv("HTTP_PROXY"), getenv("HTTP_PROXY_PORT"));
+ sprintf(proxy, "%s:%s", getenv("HTTP_PROXY"), getenv("HTTP_PROXY_PORT"));
}
else
{
- sprintf("%s", getenv("HTTP_PROXY"));
+ sprintf(proxy, "%s", getenv("HTTP_PROXY"));
}
if ( getenv("HTTP_PROXY_TYPE") )
{
- // HTTP/SOCKS4/SOCKS5
+ /* HTTP/SOCKS4/SOCKS5 */
if ( strcmp(getenv("HTTP_PROXY_TYPE"), "HTTP") == 0 )
{
proxy_type = 1;
@@ -76,7 +76,7 @@ int GetWebFile(void)
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
curl_easy_setopt(curl, CURLOPT_HEADER, 1);
- // Using proxy
+ /* Using proxy */
if ( proxy_type > 0 )
{
curl_easy_setopt(curl, CURLOPT_PROXY, proxy);