From a0b26fe44a107bbf38dec63acd60b5265d5afef4 Mon Sep 17 00:00:00 2001 From: Molgrum Date: Fri, 3 Aug 2007 14:33:40 +0000 Subject: [PATCH] Fixed some more void * problems. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2563 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- fteqtv/msg.c | 2 +- fteqtv/source.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fteqtv/msg.c b/fteqtv/msg.c index 3bc54dbca..027be75e6 100644 --- a/fteqtv/msg.c +++ b/fteqtv/msg.c @@ -138,7 +138,7 @@ void WriteData(netmsg_t *b, const void *data, int length) if (b->cursize + length > b->maxsize) //urm, that's just too big. :( return; - buf = b->data+b->cursize; + buf = (char*)b->data+b->cursize; for (i = 0; i < length; i++) *buf++ = ((unsigned char*)data)[i]; b->cursize+=length; diff --git a/fteqtv/source.c b/fteqtv/source.c index ef3c1c5a9..05733984b 100644 --- a/fteqtv/source.c +++ b/fteqtv/source.c @@ -1234,7 +1234,7 @@ unsigned char COM_BlockSequenceCRCByte (void *base, int length, int sequence) void SetMoveCRC(sv_t *qtv, netmsg_t *msg) { char *outbyte; - outbyte = msg->data + msg->startpos+1; + outbyte = (char*)msg->data + msg->startpos+1; *outbyte = COM_BlockSequenceCRCByte( outbyte+1, msg->cursize - (msg->startpos+2), @@ -1311,7 +1311,7 @@ void QTV_ParseQWStream(sv_t *qtv) qtv->timeout = qtv->curtime + UDPTIMEOUT_LENGTH; if (!Netchan_Process(&qtv->netchan, &msg)) continue; - ParseMessage(qtv, msg.data + msg.readpos, msg.cursize - msg.readpos, dem_all, -1); + ParseMessage(qtv, (char*)msg.data + msg.readpos, msg.cursize - msg.readpos, dem_all, -1); qtv->oldpackettime = qtv->nextpackettime; qtv->nextpackettime = qtv->parsetime;