summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authoreihrul <eihrul>2011-12-31 12:37:26 +0000
committereihrul <eihrul>2011-12-31 12:37:26 +0000
commit70d0d8f25d04813f2a094262def2206caf3932ea (patch)
treebdfa0206ab8442127c3e9e91a76d612095fcaad5
parente96c668702e118ad4377503fb9755eaaeca1785c (diff)
downloadenet-70d0d8f25d04813f2a094262def2206caf3932ea.tar.gz
enet-70d0d8f25d04813f2a094262def2206caf3932ea.zip
warning workarounds
-rw-r--r--peer.c2
-rw-r--r--protocol.c2
-rw-r--r--win32.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/peer.c b/peer.c
index 566f797..44b0bc5 100644
--- a/peer.c
+++ b/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/protocol.c b/protocol.c
index da64e91..34658cd 100644
--- a/protocol.c
+++ b/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/win32.c b/win32.c
index e1fae23..7b23cdd 100644
--- a/win32.c
+++ b/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)