aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-08-20 15:31:15 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-08-20 18:42:03 +0200
commitdad456a1ee613a2d6f3d981046dba7604b1c133f (patch)
tree5a9baf8927a519291c71df5e29579fbc1aefc05c /include
parenta0214dfc9a0849bc0da414b4458e313d20916799 (diff)
downloadlibssh-dad456a1ee613a2d6f3d981046dba7604b1c133f.tar.gz
libssh-dad456a1ee613a2d6f3d981046dba7604b1c133f.tar.xz
libssh-dad456a1ee613a2d6f3d981046dba7604b1c133f.zip
include: Fix shadow variables in libsshpp
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include')
-rw-r--r--include/libssh/libsshpp.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/libssh/libsshpp.hpp b/include/libssh/libsshpp.hpp
index c324cead..dc0b76b6 100644
--- a/include/libssh/libsshpp.hpp
+++ b/include/libssh/libsshpp.hpp
@@ -438,9 +438,9 @@ private:
class Channel {
friend class Session;
public:
- Channel(Session &session){
- channel=ssh_channel_new(session.getCSession());
- this->session=&session;
+ Channel(Session &ssh_session){
+ channel = ssh_channel_new(ssh_session.getCSession());
+ this->session = &ssh_session;
}
~Channel(){
ssh_channel_free(channel);
@@ -641,9 +641,9 @@ protected:
ssh_channel channel;
private:
- Channel (Session &session, ssh_channel c_channel){
+ Channel (Session &ssh_session, ssh_channel c_channel){
this->channel=c_channel;
- this->session=&session;
+ this->session = &ssh_session;
}
/* No copy and no = operator */
Channel(const Channel &);