mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 08:59:37 -05:00
Fix CppCheck in rsinit.cc
/libretroshare/src/rsserver/rsinit.cc:1051: warning: Cppcheck(unreadVariable): Variable 'mDhtStack' is assigned a value that is never used.
This commit is contained in:
parent
04125be8b1
commit
371d8205d5
@ -1011,9 +1011,11 @@ int RsServer::StartupRetroShare()
|
|||||||
RestrictedUdpLayer *url = (RestrictedUdpLayer *) mDhtStack->getUdpLayer();
|
RestrictedUdpLayer *url = (RestrictedUdpLayer *) mDhtStack->getUdpLayer();
|
||||||
url->addRestrictedPortRange(lport, uport);
|
url->addRestrictedPortRange(lport, uport);
|
||||||
}
|
}
|
||||||
#else
|
#else //LOCALNET_TESTING
|
||||||
|
#ifdef RS_USE_BITDHT
|
||||||
rsUdpStack *mDhtStack = new rsUdpStack(tmpladdr);
|
rsUdpStack *mDhtStack = new rsUdpStack(tmpladdr);
|
||||||
#endif
|
#endif
|
||||||
|
#endif //LOCALNET_TESTING
|
||||||
|
|
||||||
#ifdef RS_USE_BITDHT
|
#ifdef RS_USE_BITDHT
|
||||||
|
|
||||||
@ -1153,10 +1155,10 @@ int RsServer::StartupRetroShare()
|
|||||||
#ifdef RS_USE_DHT_STUNNER
|
#ifdef RS_USE_DHT_STUNNER
|
||||||
mNetMgr->setAddrAssist(new stunAddrAssist(mDhtStunner), new stunAddrAssist(mProxyStunner));
|
mNetMgr->setAddrAssist(new stunAddrAssist(mDhtStunner), new stunAddrAssist(mProxyStunner));
|
||||||
#endif // RS_USE_DHT_STUNNER
|
#endif // RS_USE_DHT_STUNNER
|
||||||
#else
|
#else //RS_USE_BITDHT
|
||||||
/* install NULL Pointer for rsDht Interface */
|
/* install NULL Pointer for rsDht Interface */
|
||||||
rsDht = NULL;
|
rsDht = NULL;
|
||||||
#endif
|
#endif //RS_USE_BITDHT
|
||||||
|
|
||||||
|
|
||||||
/**************************** BITDHT ***********************************/
|
/**************************** BITDHT ***********************************/
|
||||||
@ -1605,7 +1607,7 @@ int RsServer::StartupRetroShare()
|
|||||||
#endif
|
#endif
|
||||||
//mConfigMgr->addConfiguration("photo.cfg", photo_ns);
|
//mConfigMgr->addConfiguration("photo.cfg", photo_ns);
|
||||||
//mConfigMgr->addConfiguration("wire.cfg", wire_ns);
|
//mConfigMgr->addConfiguration("wire.cfg", wire_ns);
|
||||||
#endif
|
#endif //RS_ENABLE_GXS
|
||||||
mConfigMgr->addConfiguration("I2PBOB.cfg", mI2pBob);
|
mConfigMgr->addConfiguration("I2PBOB.cfg", mI2pBob);
|
||||||
|
|
||||||
mPluginsManager->addConfigurations(mConfigMgr) ;
|
mPluginsManager->addConfigurations(mConfigMgr) ;
|
||||||
|
Loading…
Reference in New Issue
Block a user