From dad456a1ee613a2d6f3d981046dba7604b1c133f Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 20 Aug 2018 15:31:15 +0200 Subject: [PATCH] include: Fix shadow variables in libsshpp Signed-off-by: Andreas Schneider --- include/libssh/libsshpp.hpp | 10 +++++----- 1 file 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 &);