]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Fix warnings for missing prototypes.
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 2 Mar 2015 13:31:32 +0000 (13:31 +0000)
committerRudolf Polzer <divVerent@xonotic.org>
Mon, 2 Mar 2015 21:30:56 +0000 (22:30 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12167 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=dd9ceb6ccbca98a08618a61395b7cee97973fe5a

libcurl.h
netconn.c

index c01aed35ce30bd4fc4fee21e80f037d291a60743..15bf019b743bcf123d879a28121344fce1cfbc0c 100644 (file)
--- a/libcurl.h
+++ b/libcurl.h
@@ -15,6 +15,7 @@ qboolean Curl_Begin_ToFile(const char *URL, double maxspeed, const char *name, i
 
 qboolean Curl_Begin_ToMemory(const char *URL, double maxspeed, unsigned char *buf, size_t bufsize, curl_callback_t callback, void *cbdata);
 qboolean Curl_Begin_ToMemory_POST(const char *URL, const char *extraheaders, double maxspeed, const char *post_content_type, const unsigned char *postbuf, size_t postbufsize, unsigned char *buf, size_t bufsize, curl_callback_t callback, void *cbdata);
+void Curl_Cancel_ToMemory(curl_callback_t callback, void* cbdata);
 
 void Curl_Init(void);
 void Curl_Init_Commands(void);
index abf8e31af82a5ef0df7e62843cf99811b65c0e72..4badfab6735f1360276abd1cca3438f07d33fc19 100755 (executable)
--- a/netconn.c
+++ b/netconn.c
@@ -690,7 +690,7 @@ qboolean NetConn_CanSend(netconn_t *conn)
        }
 }
 
-void NetConn_UpdateCleartime(double *cleartime, int rate, int burstsize, int len)
+static void NetConn_UpdateCleartime(double *cleartime, int rate, int burstsize, int len)
 {
        double bursttime = burstsize / (double)rate;