mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-03 03:36:58 -04:00
Fix Some gcc warnings 383 to 208 lines
Left explicit #warning and deprecated. Some lines are wrong indented and produce mal formed code.
This commit is contained in:
parent
74aa55e347
commit
674b6de381
63 changed files with 379 additions and 346 deletions
|
@ -249,8 +249,8 @@ void p3BanList::autoFigureOutBanRanges()
|
|||
#endif
|
||||
BanListPeer& peer(mBanRanges[it->first]) ;
|
||||
|
||||
if(peer.reason == RSBANLIST_REASON_USER)
|
||||
continue ;
|
||||
if (peer.reason == RSBANLIST_REASON_USER)
|
||||
continue;
|
||||
|
||||
peer.addr = it->first ;
|
||||
peer.masked_bytes = 1 ;
|
||||
|
@ -969,10 +969,10 @@ bool p3BanList::addBanEntry(const RsPeerId &peerId, const struct sockaddr_storag
|
|||
it->second.mLastUpdate = now;
|
||||
updated = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(updated)
|
||||
IndicateConfigChanged();
|
||||
if (updated)
|
||||
IndicateConfigChanged() ;
|
||||
|
||||
return updated;
|
||||
}
|
||||
|
@ -1056,12 +1056,12 @@ int p3BanList::condenseBanSources_locked()
|
|||
|
||||
struct sockaddr_storage bannedaddr;
|
||||
sockaddr_storage_clear(bannedaddr);
|
||||
bannedaddr.ss_family = AF_INET ;
|
||||
bannedaddr.ss_family = AF_INET;
|
||||
sockaddr_storage_copyip(bannedaddr, lit->second.addr);
|
||||
sockaddr_storage_setport(bannedaddr, 0);
|
||||
|
||||
if(isWhiteListed_locked(bannedaddr))
|
||||
continue ;
|
||||
if (isWhiteListed_locked(bannedaddr))
|
||||
continue;
|
||||
|
||||
/* check if it exists in the Set already */
|
||||
std::map<struct sockaddr_storage, BanListPeer>::iterator sit;
|
||||
|
|
|
@ -1645,8 +1645,8 @@ void p3MsgService::initRsMIS(RsMsgItem *msg, MsgInfoSummary &mis)
|
|||
{
|
||||
mis.msgflags = 0;
|
||||
|
||||
if (msg->msgFlags & RS_MSG_FLAGS_DISTANT)
|
||||
mis.msgflags |= RS_MSG_DISTANT;
|
||||
if(msg->msgFlags & RS_MSG_FLAGS_DISTANT)
|
||||
mis.msgflags |= RS_MSG_DISTANT ;
|
||||
|
||||
if (msg->msgFlags & RS_MSG_FLAGS_SIGNED)
|
||||
mis.msgflags |= RS_MSG_SIGNED ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue