Skip to content

Commit

Permalink
Fixed compiler warnings in Protocol_Receive()
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jan 20, 2012
1 parent 391b351 commit 8a4c0e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doomsday/engine/portable/src/protocol.c
Expand Up @@ -140,7 +140,7 @@ static boolean getNextByte(TCPsocket sock, byte* b)
boolean Protocol_Receive(nodeid_t from)
{
TCPsocket sock = (TCPsocket) N_GetNodeSocket(from);
char* packet = 0;
byte* packet = 0;
size_t size = 0;
boolean needInflate = false;
byte b;
Expand Down Expand Up @@ -174,7 +174,7 @@ boolean Protocol_Receive(nodeid_t from)

// Allocate memory for the packet. This will be freed once the message
// has been handled.
packet = M_Malloc(size);
packet = (byte*) M_Malloc(size);

if(!getBytesBlocking(sock, packet, size))
{
Expand Down Expand Up @@ -210,7 +210,7 @@ boolean Protocol_Receive(nodeid_t from)
{
netmessage_t *msg = M_Calloc(sizeof(netmessage_t));
msg->sender = from;
msg->data = (byte*) packet;
msg->data = packet;
msg->size = size;
msg->handle = packet;

Expand Down

0 comments on commit 8a4c0e7

Please sign in to comment.