aboutsummaryrefslogtreecommitdiff
path: root/nxcomp/src/Loop.cpp
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-07-12 21:32:14 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-07-26 10:12:44 +0200
commit5a7b589bb3a32d49d2a196fe277a0d51f6afa541 (patch)
tree379ff49a8ef82d5309101e63de24356cc75121f6 /nxcomp/src/Loop.cpp
parent93c4cea66aa328dcfe378d3569c75c40f18d662d (diff)
downloadnx-libs-5a7b589bb3a32d49d2a196fe277a0d51f6afa541.tar.gz
nx-libs-5a7b589bb3a32d49d2a196fe277a0d51f6afa541.tar.bz2
nx-libs-5a7b589bb3a32d49d2a196fe277a0d51f6afa541.zip
nxcomp: Trivially fix local variables shadowing variables of same name from higher scope.
Diffstat (limited to 'nxcomp/src/Loop.cpp')
-rw-r--r--nxcomp/src/Loop.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/nxcomp/src/Loop.cpp b/nxcomp/src/Loop.cpp
index 238e503b7..f29fae530 100644
--- a/nxcomp/src/Loop.cpp
+++ b/nxcomp/src/Loop.cpp
@@ -6687,10 +6687,10 @@ int WaitForRemote(ChannelEndPoint &socketAddress)
strcpy(hostLabel, "any host");
}
- long bindPort;
- if (socketAddress.getTCPHostAndPort(NULL, &bindPort))
+ long _bindPort;
+ if (socketAddress.getTCPHostAndPort(NULL, &_bindPort))
{
- socketAddress.setSpec(loopbackBind ? "localhost" : "*", bindPort);
+ socketAddress.setSpec(loopbackBind ? "localhost" : "*", _bindPort);
}
else
{