mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-26 22:11:18 +00:00
Fix va_list warning
This commit is contained in:
parent
017af35969
commit
8fddf5d6cd
1 changed files with 4 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue