diff options
Diffstat (limited to 'src/CompactPeerListProcessor.cc')
| -rw-r--r-- | src/CompactPeerListProcessor.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/CompactPeerListProcessor.cc b/src/CompactPeerListProcessor.cc index f6978f27..b9e10c65 100644 --- a/src/CompactPeerListProcessor.cc +++ b/src/CompactPeerListProcessor.cc @@ -38,9 +38,7 @@ namespace aria2 { -CompactPeerListProcessor::CompactPeerListProcessor(int32_t pieceLength, int64_t totalLength): - pieceLength(pieceLength), - totalLength(totalLength) {} +CompactPeerListProcessor::CompactPeerListProcessor() {} CompactPeerListProcessor::~CompactPeerListProcessor() {} @@ -55,7 +53,7 @@ Peers CompactPeerListProcessor::extractPeer(const MetaEntry* peersEntry) { return peers; } if(peersData->getLen()%6 == 0) { - for(int32_t i = 0; i < peersData->getLen(); i += 6) { + for(size_t i = 0; i < peersData->getLen(); i += 6) { struct in_addr in; in.s_addr = *(uint32_t*)(peersData->getData()+i); std::string ipaddr = inet_ntoa(in); |
