mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
win32 compilation fix
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1290 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
48218e98cb
commit
3d6697e28b
@ -215,7 +215,7 @@ void p3turtle::manageTunnels()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for(uint i=0;i<hashes_to_digg.size();++i)
|
for(unsigned int i=0;i<hashes_to_digg.size();++i)
|
||||||
diggTunnel(hashes_to_digg[i]) ;
|
diggTunnel(hashes_to_digg[i]) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -273,7 +273,7 @@ void p3turtle::autoWash()
|
|||||||
tunnels_to_close.push_back(it->first) ;
|
tunnels_to_close.push_back(it->first) ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for(uint i=0;i<tunnels_to_close.size();++i)
|
for(unsigned int i=0;i<tunnels_to_close.size();++i)
|
||||||
closeTunnel(tunnels_to_close[i]) ;
|
closeTunnel(tunnels_to_close[i]) ;
|
||||||
|
|
||||||
// File hashes can only be removed by calling the 'stopMonitoringFileTunnels()' command.
|
// File hashes can only be removed by calling the 'stopMonitoringFileTunnels()' command.
|
||||||
@ -316,7 +316,7 @@ void p3turtle::closeTunnel(TurtleTunnelId tid)
|
|||||||
|
|
||||||
std::vector<TurtleTunnelId>& tunnels(_incoming_file_hashes[hash].tunnels) ;
|
std::vector<TurtleTunnelId>& tunnels(_incoming_file_hashes[hash].tunnels) ;
|
||||||
|
|
||||||
for(uint i=0;i<tunnels.size();++i)
|
for(unsigned int i=0;i<tunnels.size();++i)
|
||||||
if(tunnels[i] == tid)
|
if(tunnels[i] == tid)
|
||||||
{
|
{
|
||||||
tunnels[i] = tunnels.back() ;
|
tunnels[i] = tunnels.back() ;
|
||||||
@ -353,7 +353,7 @@ void p3turtle::stopMonitoringFileTunnels(const std::string& hash)
|
|||||||
std::cerr << "p3turtle: stopping monitoring for file hash " << hash << ", and closing " << tunnels_to_remove.size() << " tunnels." << std::endl ;
|
std::cerr << "p3turtle: stopping monitoring for file hash " << hash << ", and closing " << tunnels_to_remove.size() << " tunnels." << std::endl ;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
for(uint i=0;i<tunnels_to_remove.size();++i)
|
for(unsigned int i=0;i<tunnels_to_remove.size();++i)
|
||||||
closeTunnel(tunnels_to_remove[i]) ;
|
closeTunnel(tunnels_to_remove[i]) ;
|
||||||
|
|
||||||
_incoming_file_hashes.erase(it) ;
|
_incoming_file_hashes.erase(it) ;
|
||||||
@ -837,7 +837,7 @@ bool p3turtle::search(std::string hash, uint64_t, uint32_t hintflags, FileInfo &
|
|||||||
info.size = it->second.size;
|
info.size = it->second.size;
|
||||||
info.hash = it->first;
|
info.hash = it->first;
|
||||||
|
|
||||||
for(uint i=0;i<it->second.tunnels.size();++i)
|
for(unsigned int i=0;i<it->second.tunnels.size();++i)
|
||||||
{
|
{
|
||||||
TransferInfo ti;
|
TransferInfo ti;
|
||||||
ti.peerId = getTurtlePeerId(it->second.tunnels[i]);
|
ti.peerId = getTurtlePeerId(it->second.tunnels[i]);
|
||||||
|
Loading…
Reference in New Issue
Block a user