mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Merge pull request #977 from devnexen/curl_client_type_fix
CURL client fix on error with CURLMcode.
This commit is contained in:
commit
6faa03a59d
3 changed files with 4 additions and 1 deletions
|
@ -1206,7 +1206,7 @@ void CL_RunHTTPDownloads(void)
|
|||
// Somethings gone very wrong.
|
||||
if (ret != CURLM_OK)
|
||||
{
|
||||
Com_Printf("HTTP download: cURL error - %s\n", qcurl_easy_strerror(ret));
|
||||
Com_Printf("HTTP download: cURL error - %s\n", qcurl_multi_strerror(ret));
|
||||
CL_CancelHTTPDownloads(true);
|
||||
}
|
||||
|
||||
|
|
|
@ -55,6 +55,7 @@ extern CURLMsg *(*qcurl_multi_info_read)(CURLM *multi_handle, int *msgs_in_queue
|
|||
extern CURLM *(*qcurl_multi_init)(void);
|
||||
extern CURLMcode (*qcurl_multi_perform)(CURLM *multi_handle, int *running_handles);
|
||||
extern CURLMcode (*qcurl_multi_remove_handle)(CURLM *multi_handle, CURL *curl_handle);
|
||||
extern const char *(*qcurl_multi_strerror)(CURLMcode);
|
||||
|
||||
// --------
|
||||
|
||||
|
|
|
@ -60,6 +60,7 @@ CURLMsg *(*qcurl_multi_info_read)(CURLM *multi_handle, int *msgs_in_queue);
|
|||
CURLM *(*qcurl_multi_init)(void);
|
||||
CURLMcode (*qcurl_multi_perform)(CURLM *multi_handle, int *running_handles);
|
||||
CURLMcode (*qcurl_multi_remove_handle)(CURLM *multi_handle, CURL *curl_handle);
|
||||
const char *(*qcurl_multi_strerror)(CURLMcode);
|
||||
|
||||
// --------
|
||||
|
||||
|
@ -160,6 +161,7 @@ qboolean qcurlInit(void)
|
|||
CONCURL(qcurl_multi_init, "curl_multi_init");
|
||||
CONCURL(qcurl_multi_perform, "curl_multi_perform");
|
||||
CONCURL(qcurl_multi_remove_handle, "curl_multi_remove_handle");
|
||||
CONCURL(qcurl_multi_strerror, "curl_multi_strerror");
|
||||
|
||||
#undef CONCURL
|
||||
|
||||
|
|
Loading…
Reference in a new issue