From d9324c178bbfa5e2ef1dcabb6ace504fe3c94328 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Fri, 17 Jan 2003 12:27:09 -0500 Subject: [PATCH] Fix proxy code and fix comments to be C comments --- Source/CTest/Curl/Testing/curltest.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/CTest/Curl/Testing/curltest.c b/Source/CTest/Curl/Testing/curltest.c index 0a15d4bcd3..1be0f19f86 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);