mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
removed unused variable warnings
This commit is contained in:
parent
4d2d825d5b
commit
5d962682e1
@ -149,10 +149,10 @@ int p3BitDht::getNetFailedPeer(std::string peerId, PeerStatus &status)
|
||||
std::string p3BitDht::getUdpAddressString()
|
||||
{
|
||||
std::string out;
|
||||
|
||||
#ifdef RS_USE_DHT_STUNNER
|
||||
struct sockaddr_in extAddr;
|
||||
uint8_t extStable;
|
||||
#ifdef RS_USE_DHT_STUNNER
|
||||
|
||||
if (mDhtStunner->externalAddr(extAddr, extStable))
|
||||
{
|
||||
rs_sprintf_append(out, " DhtExtAddr: %s:%u", rs_inet_ntoa(extAddr.sin_addr).c_str(), ntohs(extAddr.sin_port));
|
||||
|
@ -686,7 +686,6 @@ int p3BitDht::ConnectCallback(const bdId *srcId, const bdId *proxyId, const bdId
|
||||
#endif
|
||||
|
||||
struct sockaddr_in extaddr;
|
||||
uint8_t extStable = 0;
|
||||
sockaddr_clear(&extaddr);
|
||||
|
||||
bool connectOk = false;
|
||||
@ -735,6 +734,8 @@ int p3BitDht::ConnectCallback(const bdId *srcId, const bdId *proxyId, const bdId
|
||||
}
|
||||
|
||||
#ifdef RS_USE_DHT_STUNNER
|
||||
uint8_t extStable = 0;
|
||||
|
||||
UdpStunner *stunner = mProxyStunner;
|
||||
if (!proxyPort)
|
||||
{
|
||||
@ -855,6 +856,8 @@ int p3BitDht::ConnectCallback(const bdId *srcId, const bdId *proxyId, const bdId
|
||||
}
|
||||
#else // RS_USE_DHT_STUNNER
|
||||
connectionAllowed = BITDHT_CONNECT_ERROR_TEMPUNAVAIL;
|
||||
(void) connectOk;
|
||||
(void) exclusivePort;
|
||||
#endif // RS_USE_DHT_STUNNER
|
||||
}
|
||||
|
||||
@ -1195,7 +1198,6 @@ int p3BitDht::doActions()
|
||||
else if (action.mMode == BITDHT_CONNECT_MODE_PROXY)
|
||||
{
|
||||
struct sockaddr_in extaddr;
|
||||
uint8_t extStable = 0;
|
||||
sockaddr_clear(&extaddr);
|
||||
bool proxyPort = true;
|
||||
bool exclusivePort = false;
|
||||
@ -1242,6 +1244,8 @@ int p3BitDht::doActions()
|
||||
}
|
||||
}
|
||||
#ifdef RS_USE_DHT_STUNNER
|
||||
uint8_t extStable = 0;
|
||||
|
||||
UdpStunner *stunner = mProxyStunner;
|
||||
if (!proxyPort)
|
||||
{
|
||||
@ -1344,6 +1348,7 @@ int p3BitDht::doActions()
|
||||
#else // RS_USE_DHT_STUNNER
|
||||
connectionReqFailed = true;
|
||||
failReason = CSB_UPDATE_RETRY_ATTEMPT;
|
||||
(void) connectOk;
|
||||
#endif //RS_USE_DHT_STUNNER
|
||||
}
|
||||
|
||||
@ -2404,6 +2409,8 @@ void p3BitDht::ReleaseProxyExclusiveMode_locked(DhtPeerDetails *dpd, bool addrCh
|
||||
#endif
|
||||
}
|
||||
else
|
||||
#else // RS_USE_DHT_STUNNER
|
||||
(void)addrChgLikely;
|
||||
#endif // RS_USE_DHT_STUNNER
|
||||
{
|
||||
dpd->mExclusiveProxyLock = false;
|
||||
|
@ -1736,12 +1736,12 @@ void p3NetMgrIMPL::updateNetStateBox_temporal()
|
||||
std::cerr << "p3NetMgrIMPL::updateNetStateBox_temporal() ";
|
||||
std::cerr << std::endl;
|
||||
#endif
|
||||
|
||||
uint8_t isstable = 0;
|
||||
struct sockaddr_storage tmpaddr;
|
||||
sockaddr_storage_clear(tmpaddr);
|
||||
|
||||
#ifdef RS_USE_DHT_STUNNER
|
||||
uint8_t isstable = 0;
|
||||
|
||||
if (mDhtStunner)
|
||||
{
|
||||
|
||||
|
@ -395,9 +395,6 @@ void p3IdService::cleanUnusedKeys()
|
||||
}
|
||||
|
||||
// grab at most 10 identities to delete. No need to send too many requests to the token queue at once.
|
||||
|
||||
time_t now = time(NULL) ;
|
||||
int n=0 ;
|
||||
IdCacheEntryCleaner idcec(mKeysTS) ;
|
||||
|
||||
mKeyCache.applyToAllCachedEntries(idcec,&IdCacheEntryCleaner::processEntry);
|
||||
|
Loading…
Reference in New Issue
Block a user