Skip to content

Commit

Permalink
Typo in getOutgoingSequenceNumber => successfull to successful
Browse files Browse the repository at this point in the history
  • Loading branch information
nerzhul committed Mar 31, 2015
1 parent db32e6c commit 7c12172
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/network/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
}
Expand All @@ -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;
}
}
Expand Down

0 comments on commit 7c12172

Please sign in to comment.