Merge pull request #145 from Pan7/va_list

Fix va_list warning
This commit is contained in:
Tim Angus 2015-07-30 16:25:48 +01:00
commit 57a463dd5d

View file

@ -217,11 +217,14 @@ 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, va_list args)
CURLcode qcurl_easy_setopt_warn(CURL *curl, CURLoption option, ...)
{
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));
}