From: cloudwalk Date: Tue, 13 Apr 2021 16:31:40 +0000 (+0000) Subject: curl: Rename Curl_Run to Curl_Frame. Fix typo in comment X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b801620ea8a4b6450563072b135404831c04e5bd;p=xonotic%2Fdarkplaces.git curl: Rename Curl_Run to Curl_Frame. Fix typo in comment git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13121 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/host.c b/host.c index 081a9058..eee13952 100644 --- a/host.c +++ b/host.c @@ -355,7 +355,7 @@ double Host_Frame(double time) Log_DestBuffer_Flush(); - Curl_Run(); + Curl_Frame(); // check for commands typed to the host Host_GetConsoleCommands(); diff --git a/libcurl.c b/libcurl.c index ce89092f..24b20fba 100644 --- a/libcurl.c +++ b/libcurl.c @@ -1119,13 +1119,13 @@ qbool Curl_Begin_ToMemory_POST(const char *URL, const char *extraheaders, double /* ==================== -Curl_Run +Curl_Frame call this regularily as this will always download as much as possible without blocking. ==================== */ -void Curl_Run(void) +void Curl_Frame(void) { double maxspeed; downloadinfo *di; @@ -1268,7 +1268,7 @@ void Curl_CancelAll(void) ==================== Curl_Running -returns true iff there is a download running. +returns true if there is a download running. ==================== */ qbool Curl_Running(void) diff --git a/libcurl.h b/libcurl.h index b78955c6..d960be8a 100644 --- a/libcurl.h +++ b/libcurl.h @@ -13,7 +13,7 @@ enum typedef void (*curl_callback_t) (int status, size_t length_received, unsigned char *buffer, void *cbdata); // code is one of the CURLCBSTATUS constants, or the HTTP error code (when > 0). -void Curl_Run(void); +void Curl_Frame(void); qbool Curl_Running(void); qbool Curl_Begin_ToFile(const char *URL, double maxspeed, const char *name, int loadtype, qbool forthismap);