diff options
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/cl_curl.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/client/cl_curl.c b/src/client/cl_curl.c index 572ed550..80aefabe 100644 --- a/src/client/cl_curl.c +++ b/src/client/cl_curl.c @@ -218,14 +218,11 @@ static size_t CL_cURL_CallbackWrite(void *buffer, size_t size, size_t nmemb, return size*nmemb; } -CURLcode qcurl_easy_setopt_warn(CURL *curl, CURLoption option, ...) +static CURLcode qcurl_easy_setopt_warn_valist(CURL *curl, CURLoption option, va_list args) { CURLcode result; - va_list args; - va_start(args, option); result = qcurl_easy_setopt(curl, option, args); - va_end(args); if(result != CURLE_OK) { Com_DPrintf("qcurl_easy_setopt failed: %s\n", qcurl_easy_strerror(result)); } @@ -233,6 +230,18 @@ CURLcode qcurl_easy_setopt_warn(CURL *curl, CURLoption option, ...) return result; } +CURLcode qcurl_easy_setopt_warn(CURL *curl, CURLoption option, ...) +{ + CURLcode result; + + va_list argp; + va_start(argp, option); + result = qcurl_easy_setopt_warn_valist(curl, option, argp); + va_end(argp); + + return result; +} + void CL_cURL_BeginDownload( const char *localName, const char *remoteURL ) { CURLMcode result; |