From f9927aac27fd381718aadf0364ae69feeed3d4f0 Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 15 Sep 2004 03:07:18 +0000 Subject: [PATCH] Annother few gcc warnings bite the dust. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@219 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/server/sv_mvd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/server/sv_mvd.c b/engine/server/sv_mvd.c index 87625dc2a..860fa9e71 100644 --- a/engine/server/sv_mvd.c +++ b/engine/server/sv_mvd.c @@ -319,7 +319,7 @@ void SV_MVDWriteToDisk(int type, int to, float time) int size; sizebuf_t msg; - (qbyte*)p = demo.dbuf->data; + p = (header_t *)demo.dbuf->data; demo.dbuf->h = NULL; oldm = demo.dbuf->bufsize; @@ -350,7 +350,7 @@ void SV_MVDWriteToDisk(int type, int to, float time) demobuffer->start += size + header; } // move along - (qbyte*)p = p->data + size; + p = (header_t *)(p->data + size); } if (demobuffer->start == demobuffer->last) { @@ -378,7 +378,7 @@ static void MVDSetBuf(qbyte type, int to) header_t *p; int pos = 0; - (qbyte*)p = demo.dbuf->data; + p = (header_t *)demo.dbuf->data; while (pos < demo.dbuf->bufsize) { @@ -391,7 +391,7 @@ static void MVDSetBuf(qbyte type, int to) return; } - (qbyte*)p = p->data + p->size; + p = (header_t *)(p->data + p->size); } // type&&to not exist in the buf, so add it