mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-29 01:03:57 +03:00
include: Fix shadow variables in libsshpp
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@@ -438,9 +438,9 @@ private:
|
|||||||
class Channel {
|
class Channel {
|
||||||
friend class Session;
|
friend class Session;
|
||||||
public:
|
public:
|
||||||
Channel(Session &session){
|
Channel(Session &ssh_session){
|
||||||
channel=ssh_channel_new(session.getCSession());
|
channel = ssh_channel_new(ssh_session.getCSession());
|
||||||
this->session=&session;
|
this->session = &ssh_session;
|
||||||
}
|
}
|
||||||
~Channel(){
|
~Channel(){
|
||||||
ssh_channel_free(channel);
|
ssh_channel_free(channel);
|
||||||
@@ -641,9 +641,9 @@ protected:
|
|||||||
ssh_channel channel;
|
ssh_channel channel;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Channel (Session &session, ssh_channel c_channel){
|
Channel (Session &ssh_session, ssh_channel c_channel){
|
||||||
this->channel=c_channel;
|
this->channel=c_channel;
|
||||||
this->session=&session;
|
this->session = &ssh_session;
|
||||||
}
|
}
|
||||||
/* No copy and no = operator */
|
/* No copy and no = operator */
|
||||||
Channel(const Channel &);
|
Channel(const Channel &);
|
||||||
|
|||||||
Reference in New Issue
Block a user