mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-24 23:19:29 -05:00
Fixed compile on Windows and removed some compiler warnings.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4033 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
074f382eab
commit
4b8766aec3
@ -3311,7 +3311,7 @@ bool p3ConnectMgr::checkNetAddress()
|
||||
// Random port avoids clashes, improves anonymity.
|
||||
//
|
||||
uint32_t default_port_seed = 0 ;
|
||||
for(uint i=0;i<mOwnState.id.size();++i)
|
||||
for(std::string::size_type i=0;i<mOwnState.id.size();++i)
|
||||
default_port_seed = (0x473a8b74u * (unsigned int)(mOwnState.id[i]) + default_port_seed)^0x11837bea ;
|
||||
|
||||
mOwnState.currentlocaladdr.sin_port = htons(PQI_MIN_PORT + (default_port_seed % (PQI_MAX_PORT - PQI_MIN_PORT)));
|
||||
|
@ -243,7 +243,9 @@ void p3GroupDistrib::run() /* called once the thread is started */
|
||||
std::cerr << std::endl;
|
||||
#endif
|
||||
|
||||
#ifdef DISTRIB_DUMMYMSG_DEBUG
|
||||
int printed = 0;
|
||||
#endif
|
||||
|
||||
while(1)
|
||||
{
|
||||
|
@ -833,7 +833,6 @@ void SearchDialog::insertFile(const std::string& txt,qulonglong searchId, const
|
||||
|
||||
// 1 - look in result window whether the file already exists.
|
||||
//
|
||||
int items = ui.searchResultWidget->topLevelItemCount();
|
||||
bool found = false ;
|
||||
int sources;
|
||||
int friendSource = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user