summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/channels.c b/channels.c
index b1e544519..64c1ce76d 100644
--- a/channels.c
+++ b/channels.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: channels.c,v 1.281 2008/06/15 20:06:26 djm Exp $ */ 1/* $OpenBSD: channels.c,v 1.282 2008/06/16 13:22:53 dtucker Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -221,7 +221,7 @@ channel_lookup(int id)
221 */ 221 */
222static void 222static void
223channel_register_fds(Channel *c, int rfd, int wfd, int efd, 223channel_register_fds(Channel *c, int rfd, int wfd, int efd,
224 int extusage, int nonblock, int isatty) 224 int extusage, int nonblock, int is_tty)
225{ 225{
226 /* Update the maximum file descriptor value. */ 226 /* Update the maximum file descriptor value. */
227 channel_max_fd = MAX(channel_max_fd, rfd); 227 channel_max_fd = MAX(channel_max_fd, rfd);
@@ -237,7 +237,7 @@ channel_register_fds(Channel *c, int rfd, int wfd, int efd,
237 c->efd = efd; 237 c->efd = efd;
238 c->extended_usage = extusage; 238 c->extended_usage = extusage;
239 239
240 if ((c->isatty = isatty) != 0) 240 if ((c->isatty = is_tty) != 0)
241 debug2("channel %d: rfd %d isatty", c->self, c->rfd); 241 debug2("channel %d: rfd %d isatty", c->self, c->rfd);
242 c->wfd_isatty = isatty || isatty(c->wfd); 242 c->wfd_isatty = isatty || isatty(c->wfd);
243 243
@@ -742,13 +742,13 @@ channel_register_filter(int id, channel_infilter_fn *ifn,
742 742
743void 743void
744channel_set_fds(int id, int rfd, int wfd, int efd, 744channel_set_fds(int id, int rfd, int wfd, int efd,
745 int extusage, int nonblock, int isatty, u_int window_max) 745 int extusage, int nonblock, int is_tty, u_int window_max)
746{ 746{
747 Channel *c = channel_lookup(id); 747 Channel *c = channel_lookup(id);
748 748
749 if (c == NULL || c->type != SSH_CHANNEL_LARVAL) 749 if (c == NULL || c->type != SSH_CHANNEL_LARVAL)
750 fatal("channel_activate for non-larval channel %d.", id); 750 fatal("channel_activate for non-larval channel %d.", id);
751 channel_register_fds(c, rfd, wfd, efd, extusage, nonblock, isatty); 751 channel_register_fds(c, rfd, wfd, efd, extusage, nonblock, is_tty);
752 c->type = SSH_CHANNEL_OPEN; 752 c->type = SSH_CHANNEL_OPEN;
753 c->local_window = c->local_window_max = window_max; 753 c->local_window = c->local_window_max = window_max;
754 packet_start(SSH2_MSG_CHANNEL_WINDOW_ADJUST); 754 packet_start(SSH2_MSG_CHANNEL_WINDOW_ADJUST);