From 8ffb35add0efbd9427092d17e290f2b6494b791b Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sun, 3 Jun 2012 19:20:34 +0000 Subject: [PATCH] net: remove (char *) casts where they amount to no-ops. git-svn-id: https://svn.eduke32.com/eduke32@2734 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/net.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/polymer/eduke32/source/net.c b/polymer/eduke32/source/net.c index f57b65327..81bc47b13 100644 --- a/polymer/eduke32/source/net.c +++ b/polymer/eduke32/source/net.c @@ -1564,8 +1564,8 @@ void Net_ClientMove(void) char buf[1024]; Bassert((signed)sizeof(buf) >= siz+400); - siz = qlz_compress((char *)(packbuf)+1, (char *)buf, siz, state_compress); - Bmemcpy((char *)(packbuf)+1, (char *)buf, siz); + siz = qlz_compress(packbuf+1, buf, siz, state_compress); + Bmemcpy(packbuf+1, buf, siz); siz++; } @@ -1727,8 +1727,8 @@ void Net_UpdateClients(void) if (siz >= PACKBUF_SIZE) initprintf("Global packet buffer overflow! Size of packet: %i\n", siz); - siz = qlz_compress((char *)(packbuf)+1, (char *)buf, siz, state_compress); - Bmemcpy((char *)(packbuf)+1, (char *)buf, siz); + siz = qlz_compress(packbuf+1, buf, siz, state_compress); + Bmemcpy(packbuf+1, buf, siz); siz++; } @@ -1780,8 +1780,8 @@ void Net_StreamLevel(void) return; } - siz = qlz_compress((char *)streamoutput, (char *)buf, osize, state_compress); - Bmemcpy((char *)(packbuf)+1, (char *)buf, siz); + siz = qlz_compress((char *)streamoutput, buf, osize, state_compress); + Bmemcpy(packbuf+1, buf, siz); siz++; }