]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
curl: Rename Curl_Run to Curl_Frame. Fix typo in comment
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 13 Apr 2021 16:31:40 +0000 (16:31 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 13 Apr 2021 16:31:40 +0000 (16:31 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13121 d7cf8633-e32d-0410-b094-e92efae38249

host.c
libcurl.c
libcurl.h

diff --git a/host.c b/host.c
index 081a9058db0299254ab8e47c59fc99af12e73f75..eee139525819cee72b4be7ee45cfaaae4d55e48e 100644 (file)
--- 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();
index ce89092fe74371ae7212114359496c52e0962e5d..24b20fba6e6d6d9c8210e10e73c5eba40e7c07da 100644 (file)
--- 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)
index b78955c6b1945c1f4dd253228a7f5964bb4a4baa..d960be8af0939c7c97eb19293e5bbe4657b75ecd 100644 (file)
--- 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);