aboutsummaryrefslogtreecommitdiffhomepage
path: root/peer.c
diff options
context:
space:
mode:
authorLee Salzman <[email protected]>2012-09-18 16:38:10 +0300
committerLee Salzman <[email protected]>2012-09-18 16:38:10 +0300
commit0e0ace781b3d41c08d310e678f4e08e323a6a3b8 (patch)
treec1bfa74351a74ab5b00ec2a5fe9e74d8b415a1a7 /peer.c
parent74d4c4a88fb274b068352512d8d0dfa3ff819d56 (diff)
downloadenet-0e0ace781b3d41c08d310e678f4e08e323a6a3b8.tar.gz
enet-0e0ace781b3d41c08d310e678f4e08e323a6a3b8.zip
merging some things from Ryan C. Gordon (icculus):
enet_socket_connect() shouldn't fail with non-blocking sockets. Removed unused variable. Sanity check for possible NULL dereference reported by clang's static…analysis. Added an interface to shutdown(). Fixed typo in the comments.
Diffstat (limited to 'peer.c')
-rw-r--r--peer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/peer.c b/peer.c
index 56a93f6..a86d793 100644
--- a/peer.c
+++ b/peer.c
@@ -25,7 +25,7 @@
the mean round trip time measured over the interval, then the throttle probability
is decreased to limit traffic by an amount specified in the deceleration parameter, which
is a ratio to the ENET_PEER_PACKET_THROTTLE_SCALE constant. When the throttle has
- a value of ENET_PEER_PACKET_THROTTLE_SCALE, on unreliable packets are dropped by
+ a value of ENET_PEER_PACKET_THROTTLE_SCALE, no unreliable packets are dropped by
ENet, and so 100% of all unreliable packets will be sent. When the throttle has a
value of 0, all unreliable packets are dropped by ENet, and so 0% of all unreliable
packets will be sent. Intermediate values for the throttle represent intermediate
@@ -751,7 +751,6 @@ enet_peer_dispatch_incoming_unreliable_commands (ENetPeer * peer, ENetChannel *
void
enet_peer_dispatch_incoming_reliable_commands (ENetPeer * peer, ENetChannel * channel)
{
- enet_uint16 oldReliableSequenceNumber = channel -> incomingReliableSequenceNumber;
ENetListIterator currentCommand;
for (currentCommand = enet_list_begin (& channel -> incomingReliableCommands);