From cbe6fce47b35d64f1bbef7182d820f13c838371c Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Sat, 31 Dec 2011 13:15:03 +0000 Subject: [PATCH] warning kluges git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6743 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/enet/peer.c | 2 +- source/enet/protocol.c | 2 +- source/enet/win32.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/enet/peer.c b/source/enet/peer.c index 566f7978..44b0bc5a 100755 --- a/source/enet/peer.c +++ b/source/enet/peer.c @@ -715,7 +715,7 @@ enet_peer_queue_incoming_command (ENetPeer * peer, const ENetProtocol * command, static ENetIncomingCommand dummyCommand; ENetChannel * channel = & peer -> channels [command -> header.channelID]; - enet_uint32 unreliableSequenceNumber = 0, reliableSequenceNumber; + enet_uint32 unreliableSequenceNumber = 0, reliableSequenceNumber = 0; enet_uint16 reliableWindow, currentWindow; ENetIncomingCommand * incomingCommand; ENetListIterator currentCommand; diff --git a/source/enet/protocol.c b/source/enet/protocol.c index da64e915..34658cdd 100755 --- a/source/enet/protocol.c +++ b/source/enet/protocol.c @@ -170,7 +170,7 @@ enet_protocol_remove_sent_unreliable_commands (ENetPeer * peer) static ENetProtocolCommand enet_protocol_remove_sent_reliable_command (ENetPeer * peer, enet_uint16 reliableSequenceNumber, enet_uint8 channelID) { - ENetOutgoingCommand * outgoingCommand; + ENetOutgoingCommand * outgoingCommand = NULL; ENetListIterator currentCommand; ENetProtocolCommand commandNumber; int wasSent = 1; diff --git a/source/enet/win32.c b/source/enet/win32.c index e1fae233..7b23cddc 100755 --- a/source/enet/win32.c +++ b/source/enet/win32.c @@ -238,7 +238,7 @@ enet_socket_send (ENetSocket socket, (DWORD) bufferCount, & sentLength, 0, - address != NULL ? (struct sockaddr *) & sin : 0, + address != NULL ? (struct sockaddr *) & sin : NULL, address != NULL ? sizeof (struct sockaddr_in) : 0, NULL, NULL) == SOCKET_ERROR)