mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 19:20:38 +00:00
net: remove (char *) casts where they amount to no-ops.
git-svn-id: https://svn.eduke32.com/eduke32@2734 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
2df94e8bc7
commit
8ffb35add0
1 changed files with 6 additions and 6 deletions
|
@ -1564,8 +1564,8 @@ void Net_ClientMove(void)
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
|
|
||||||
Bassert((signed)sizeof(buf) >= siz+400);
|
Bassert((signed)sizeof(buf) >= siz+400);
|
||||||
siz = qlz_compress((char *)(packbuf)+1, (char *)buf, siz, state_compress);
|
siz = qlz_compress(packbuf+1, buf, siz, state_compress);
|
||||||
Bmemcpy((char *)(packbuf)+1, (char *)buf, siz);
|
Bmemcpy(packbuf+1, buf, siz);
|
||||||
siz++;
|
siz++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1727,8 +1727,8 @@ void Net_UpdateClients(void)
|
||||||
if (siz >= PACKBUF_SIZE)
|
if (siz >= PACKBUF_SIZE)
|
||||||
initprintf("Global packet buffer overflow! Size of packet: %i\n", siz);
|
initprintf("Global packet buffer overflow! Size of packet: %i\n", siz);
|
||||||
|
|
||||||
siz = qlz_compress((char *)(packbuf)+1, (char *)buf, siz, state_compress);
|
siz = qlz_compress(packbuf+1, buf, siz, state_compress);
|
||||||
Bmemcpy((char *)(packbuf)+1, (char *)buf, siz);
|
Bmemcpy(packbuf+1, buf, siz);
|
||||||
siz++;
|
siz++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1780,8 +1780,8 @@ void Net_StreamLevel(void)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
siz = qlz_compress((char *)streamoutput, (char *)buf, osize, state_compress);
|
siz = qlz_compress((char *)streamoutput, buf, osize, state_compress);
|
||||||
Bmemcpy((char *)(packbuf)+1, (char *)buf, siz);
|
Bmemcpy(packbuf+1, buf, siz);
|
||||||
siz++;
|
siz++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue