fixed a couple warnings on memsetting shm
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 8 Oct 2003 21:00:04 +0000 (21:00 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 8 Oct 2003 21:00:04 +0000 (21:00 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3554 d7cf8633-e32d-0410-b094-e92efae38249

snd_win.c

index 67c7d2f..b8d5175 100644 (file)
--- a/snd_win.c
+++ b/snd_win.c
@@ -190,7 +190,7 @@ sndinitstat SNDDMA_InitDirect (void)
        int                             reps;
        int i;
 
        int                             reps;
        int i;
 
-       memset(shm, 0, sizeof(*shm));
+       memset((void *)shm, 0, sizeof(*shm));
        shm->channels = 2;
        shm->samplebits = 16;
        i = COM_CheckParm ("-sndspeed"); // LordHavoc: -sndspeed option
        shm->channels = 2;
        shm->samplebits = 16;
        i = COM_CheckParm ("-sndspeed"); // LordHavoc: -sndspeed option
@@ -423,7 +423,7 @@ qboolean SNDDMA_InitWav (void)
        snd_sent = 0;
        snd_completed = 0;
 
        snd_sent = 0;
        snd_completed = 0;
 
-       memset(shm, 0, sizeof(*shm));
+       memset((void *)shm, 0, sizeof(*shm));
        shm->channels = 2;
        shm->samplebits = 16;
        i = COM_CheckParm ("-sndspeed"); // LordHavoc: -sndspeed option
        shm->channels = 2;
        shm->samplebits = 16;
        i = COM_CheckParm ("-sndspeed"); // LordHavoc: -sndspeed option