]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix some errors and warnings
authorsajt <sajt@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 24 Aug 2008 04:08:43 +0000 (04:08 +0000)
committersajt <sajt@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 24 Aug 2008 04:08:43 +0000 (04:08 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8468 d7cf8633-e32d-0410-b094-e92efae38249

cl_demo.c
cl_screen.c
csprogs.c

index 27959bf6a10836ced927f5cb4bfa9d462d6af59c..bffb265676e8535b83e0c93ee2cb7dfdc5f8b2ea 100644 (file)
--- a/cl_demo.c
+++ b/cl_demo.c
@@ -163,7 +163,7 @@ void CL_PasteDemo (void **buf, fs_offset_t *filesize)
        if(startoffset < *filesize)
                ++startoffset;
 
-       FS_Write(cls.demofile, *buf + startoffset, *filesize - startoffset);
+       FS_Write(cls.demofile, (char*)*buf + startoffset, *filesize - startoffset);
 
        Mem_Free(*buf);
        *buf = NULL;
index 9b8404cfba087a7e512478164316c1959b97a4bf..95b9fa4617844f2ddecfc8c6d972545d8c6ef8b0 100644 (file)
@@ -589,7 +589,7 @@ static int SCR_InfobarHeight()
 SCR_InfoBar_f
 ==============
 */
-void SCR_InfoBar_f()
+void SCR_InfoBar_f(void)
 {
        if(Cmd_Argc() == 3)
        {
index 92408e48cb67f9d79c6302481e3330642529ae6d..4b421f3c17e6b3f4732ab3800e9a815a8e84e033 100644 (file)
--- a/csprogs.c
+++ b/csprogs.c
@@ -691,7 +691,7 @@ qboolean MakeDownloadPacket(const char *filename, void *data, unsigned long len,
                MSG_WriteByte(buf, svc_downloaddata);
                MSG_WriteLong(buf, thispacketoffset);
                MSG_WriteShort(buf, thispacketsize);
-               SZ_Write(buf, data + thispacketoffset, thispacketsize);
+               SZ_Write(buf, (char*)data + thispacketoffset, thispacketsize);
 
                return true;
        }