aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorPavel Janík <Pavel@Janik.cz>2016-08-15 14:10:07 +0200
committerPavel Janík <Pavel@Janik.cz>2016-08-15 14:10:07 +0200
commitb7c349d5e7c207bb7a2e7469c3e5522c9909c17f (patch)
tree72334fef6ee1ea35717aa8295589b0a01691dba9 /src/net.h
parent1030fa718c59c29d3208af13e853457b7ac59d2e (diff)
Do not shadow variables in networking code
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/net.h b/src/net.h
index ea03defc40..b5ebe66ce0 100644
--- a/src/net.h
+++ b/src/net.h
@@ -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);
}
}
}