diff options
author | Pavel Janík <Pavel@Janik.cz> | 2016-08-15 14:10:07 +0200 |
---|---|---|
committer | Pavel Janík <Pavel@Janik.cz> | 2016-08-15 14:10:07 +0200 |
commit | b7c349d5e7c207bb7a2e7469c3e5522c9909c17f (patch) | |
tree | 72334fef6ee1ea35717aa8295589b0a01691dba9 /src/net.h | |
parent | 1030fa718c59c29d3208af13e853457b7ac59d2e (diff) |
Do not shadow variables in networking code
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -509,21 +509,21 @@ public: - void AddAddressKnown(const CAddress& addr) + void AddAddressKnown(const CAddress& _addr) { - addrKnown.insert(addr.GetKey()); + addrKnown.insert(_addr.GetKey()); } - void PushAddress(const CAddress& addr) + void PushAddress(const CAddress& _addr) { // Known checking here is only to save space from duplicates. // SendMessages will filter it again for knowns that were added // after addresses were pushed. - if (addr.IsValid() && !addrKnown.contains(addr.GetKey())) { + if (_addr.IsValid() && !addrKnown.contains(_addr.GetKey())) { if (vAddrToSend.size() >= MAX_ADDR_TO_SEND) { - vAddrToSend[insecure_rand() % vAddrToSend.size()] = addr; + vAddrToSend[insecure_rand() % vAddrToSend.size()] = _addr; } else { - vAddrToSend.push_back(addr); + vAddrToSend.push_back(_addr); } } } |