aboutsummaryrefslogtreecommitdiff
path: root/sample.c
diff options
context:
space:
mode:
Diffstat (limited to 'sample.c')
-rw-r--r--sample.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sample.c b/sample.c
index b98e750c..2d725dc5 100644
--- a/sample.c
+++ b/sample.c
@@ -109,7 +109,7 @@ static void do_exit(int i) {
exit(0);
}
-CHANNEL *chan;
+ssh_channel chan;
int signal_delayed=0;
static void sigwindowchanged(int i){
@@ -129,12 +129,12 @@ static void sizechanged(void){
// printf("Changed pty size\n");
setsignal();
}
-static void select_loop(SSH_SESSION *session,CHANNEL *channel){
+static void select_loop(SSH_SESSION *session,ssh_channel channel){
fd_set fds;
struct timeval timeout;
char buffer[10];
ssh_buffer readbuf=buffer_new();
- CHANNEL *channels[2];
+ ssh_channel channels[2];
int lus;
int eof=0;
int maxfd;
@@ -229,7 +229,7 @@ static void select_loop(SSH_SESSION *session,CHANNEL *channel){
static void shell(SSH_SESSION *session){
- CHANNEL *channel;
+ ssh_channel channel;
struct termios terminal_local;
int interactive=isatty(0);
channel = channel_new(session);
@@ -260,7 +260,7 @@ static void shell(SSH_SESSION *session){
}
static void batch_shell(SSH_SESSION *session){
- CHANNEL *channel;
+ ssh_channel channel;
char buffer[1024];
int i,s=0;
for(i=0;i<MAXCMD && cmds[i];++i)