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 27959bf..bffb265 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 9b8404c..95b9fa4 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 92408e4..4b421f3 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;
        }