mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-10 10:26:47 +09:00
Avoid usage of deprecated functions and whitespace cleanup
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
This commit is contained in:
@@ -669,7 +669,7 @@ private:
|
|||||||
|
|
||||||
inline Channel *Session::acceptForward(int timeout_ms){
|
inline Channel *Session::acceptForward(int timeout_ms){
|
||||||
ssh_channel forward =
|
ssh_channel forward =
|
||||||
ssh_channel_accept_forward(c_session, timeout_ms, NULL);
|
ssh_channel_open_forward_port(c_session, timeout_ms, NULL, NULL, NULL);
|
||||||
ssh_throw_null(c_session,forward);
|
ssh_throw_null(c_session,forward);
|
||||||
Channel *newchan = new Channel(*this,forward);
|
Channel *newchan = new Channel(*this,forward);
|
||||||
return newchan;
|
return newchan;
|
||||||
|
|||||||
@@ -164,7 +164,7 @@ int channel_change_pty_size(ssh_channel channel,int cols,int rows){
|
|||||||
}
|
}
|
||||||
|
|
||||||
ssh_channel channel_forward_accept(ssh_session session, int timeout_ms){
|
ssh_channel channel_forward_accept(ssh_session session, int timeout_ms){
|
||||||
return ssh_channel_accept_forward(session, timeout_ms, NULL);
|
return ssh_channel_open_forward_port(session, timeout_ms, NULL, NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
int channel_close(ssh_channel channel){
|
int channel_close(ssh_channel channel){
|
||||||
|
|||||||
Reference in New Issue
Block a user