2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Suppressed compiler warning.
	* src/AdaptiveURISelector.cc
	* src/DefaultPieceStorage.cc
pull/1/head
Tatsuhiro Tsujikawa 2009-02-10 14:50:54 +00:00
parent 145799abc5
commit fb8848d415
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Suppressed compiler warning.
* src/AdaptiveURISelector.cc
* src/DefaultPieceStorage.cc
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Defined virtual destructor.

View File

@ -52,7 +52,7 @@ private:
unsigned int _nbServerToEvaluate;
unsigned int _nbConnections;
static const unsigned int MAX_TIMEOUT = 60;
static const time_t MAX_TIMEOUT = 60;
Logger* _logger;

View File

@ -447,7 +447,8 @@ void DefaultPieceStorage::setFileFilter(IntSequence seq)
fileIndexes.erase(std::unique(fileIndexes.begin(), fileIndexes.end()), fileIndexes.end());
std::deque<std::string> filePaths;
const FileEntries& entries = diskAdaptor->getFileEntries();
for(size_t i = 0; i < entries.size(); i++) {
int32_t entriesSize = entries.size();
for(int32_t i = 0; i < entriesSize; i++) {
if(std::find(fileIndexes.begin(), fileIndexes.end(), i+1) != fileIndexes.end()) {
logger->debug("index=%d is %s", i+1, entries[i]->getPath().c_str());
filePaths.push_back(entries[i]->getPath());