mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-27 14:32:55 +00:00
Fix wonky va_list usage
This commit is contained in:
parent
9767a0e790
commit
566e2a18de
1 changed files with 13 additions and 4 deletions
|
@ -217,14 +217,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));
|
||||
}
|
||||
|
@ -232,6 +229,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;
|
||||
|
|
Loading…
Reference in a new issue