diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2003-01-17 17:27:09 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2003-01-17 17:27:09 (GMT) |
commit | d9324c178bbfa5e2ef1dcabb6ace504fe3c94328 (patch) | |
tree | 412a4c0551fe8b5b3079a844441b421f9b595fb8 /Source | |
parent | 8142fe343fc333c4a580eda37888f03d79212cf1 (diff) | |
download | CMake-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.c | 8 |
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); |