fix local variable shadowing warning

This commit is contained in:
Peter Thorson
2014-10-07 08:17:53 -04:00
parent 2f64f8d91a
commit fe6d82e7a3

View File

@@ -170,12 +170,12 @@ public:
scoped_lock_type lock(m_read_mutex);
size_t total_read = 0;
size_t read = 0;
size_t temp_read = 0;
do {
read = this->read_some_impl(buf+total_read,len-total_read);
total_read += read;
} while (read != 0 && total_read < len);
temp_read = this->read_some_impl(buf+total_read,len-total_read);
total_read += temp_read;
} while (temp_read != 0 && total_read < len);
return total_read;
}