Skip to content

Commit 30e7ccd

Browse files
committed
[core] Minor fix of variable shadowing.
1 parent 6fcff6d commit 30e7ccd

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

srtcore/api.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ int srt::CUDTUnited::newConnection(const SRTSOCKET listen,
674674
// XXX this might require another check of group type.
675675
// For redundancy group, at least, update the status in the group
676676
CUDTGroup* g = ns->m_GroupOf;
677-
ScopedLock glock(g->m_GroupLock);
677+
ScopedLock grlock(g->m_GroupLock);
678678
if (g->m_bClosing)
679679
{
680680
error = 1; // "INTERNAL REJECTION"

srtcore/core.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9726,8 +9726,6 @@ void srt::CUDT::processClose()
97269726

97279727
void srt::CUDT::sendLossReport(const std::vector<std::pair<int32_t, int32_t> > &loss_seqs)
97289728
{
9729-
typedef vector<pair<int32_t, int32_t> > loss_seqs_t;
9730-
97319729
vector<int32_t> seqbuffer;
97329730
seqbuffer.reserve(2 * loss_seqs.size()); // pessimistic
97339731
for (loss_seqs_t::const_iterator i = loss_seqs.begin(); i != loss_seqs.end(); ++i)

srtcore/epoll.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ void srt::CEPoll::clear_ready_usocks(CEPollDesc& d, int direction)
215215
}
216216
}
217217

218-
for (size_t i = 0; i < cleared.size(); ++i)
219-
d.removeSubscription(cleared[i]);
218+
for (size_t j = 0; j < cleared.size(); ++j)
219+
d.removeSubscription(cleared[j]);
220220
}
221221

222222
int srt::CEPoll::add_ssock(const int eid, const SYSSOCKET& s, const int* events)

0 commit comments

Comments
 (0)