aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2015-03-31 09:18:11 +0200
committerLoic Blot <loic.blot@unix-experience.fr>2015-03-31 09:18:11 +0200
commit7c121726dc9e334208f3a7585db86bc717a4a83e (patch)
tree749792b75ba09d5ba1ef0fbbc6a1e2045f09e266 /src
parentdb32e6c5aa3bf79c23fa51f9297440fcaf09215d (diff)
downloadminetest-7c121726dc9e334208f3a7585db86bc717a4a83e.tar.gz
minetest-7c121726dc9e334208f3a7585db86bc717a4a83e.tar.bz2
minetest-7c121726dc9e334208f3a7585db86bc717a4a83e.zip
Typo in getOutgoingSequenceNumber => successfull to successful
Diffstat (limited to 'src')
-rw-r--r--src/network/connection.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/network/connection.cpp b/src/network/connection.cpp
index 4440b8cc7..5ea739dd4 100644
--- a/src/network/connection.cpp
+++ b/src/network/connection.cpp
@@ -608,7 +608,7 @@ void Channel::setNextSplitSeqNum(u16 seqnum)
next_outgoing_split_seqnum = seqnum;
}
-u16 Channel::getOutgoingSequenceNumber(bool& successfull)
+u16 Channel::getOutgoingSequenceNumber(bool& successful)
{
JMutexAutoLock internal(m_internal_mutex);
u16 retval = next_outgoing_seqnum;
@@ -628,7 +628,7 @@ u16 Channel::getOutgoingSequenceNumber(bool& successfull)
// know about difference of two unsigned may be negative in general
// but we already made sure it won't happen in this case
if (((u16)(next_outgoing_seqnum - lowest_unacked_seqnumber)) > window_size) {
- successfull = false;
+ successful = false;
return 0;
}
}
@@ -638,7 +638,7 @@ u16 Channel::getOutgoingSequenceNumber(bool& successfull)
// but we already made sure it won't happen in this case
if ((next_outgoing_seqnum + (u16)(SEQNUM_MAX - lowest_unacked_seqnumber)) >
window_size) {
- successfull = false;
+ successful = false;
return 0;
}
}