summaryrefslogtreecommitdiff
path: root/nchan.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2002-01-22 23:22:44 +1100
committerDamien Miller <djm@mindrot.org>2002-01-22 23:22:44 +1100
commit66ac6a43a8d73dd72da4639e79b37241b01b61bd (patch)
treefb547074e36ee3fc9df8ef86a058c2d1ad13a61f /nchan.c
parent4ce25952597aa5a6daabc5a1f55133b86e358fb2 (diff)
- markus@cvs.openbsd.org 2002/01/10 12:47:59
[nchan.c] more unused code (with channels.c:1.156)
Diffstat (limited to 'nchan.c')
-rw-r--r--nchan.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/nchan.c b/nchan.c
index 79fff66c8..905379b07 100644
--- a/nchan.c
+++ b/nchan.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: nchan.c,v 1.35 2002/01/10 12:38:26 markus Exp $"); 26RCSID("$OpenBSD: nchan.c,v 1.36 2002/01/10 12:47:59 markus Exp $");
27 27
28#include "ssh1.h" 28#include "ssh1.h"
29#include "ssh2.h" 29#include "ssh2.h"
@@ -155,29 +155,6 @@ static void
155chan_rcvd_ieof1(Channel *c) 155chan_rcvd_ieof1(Channel *c)
156{ 156{
157 debug("channel %d: rcvd ieof", c->self); 157 debug("channel %d: rcvd ieof", c->self);
158 if (c->type != SSH_CHANNEL_OPEN) {
159 debug("channel %d: non-open", c->self);
160 if (c->istate == CHAN_INPUT_OPEN) {
161 debug("channel %d: non-open: input open -> wait_oclose",
162 c->self);
163 chan_shutdown_read(c);
164 chan_send_ieof1(c);
165 c->istate = CHAN_INPUT_WAIT_OCLOSE;
166 } else {
167 error("channel %d: non-open: istate %d != open",
168 c->self, c->istate);
169 }
170 if (c->ostate == CHAN_OUTPUT_OPEN) {
171 debug("channel %d: non-open: output open -> closed",
172 c->self);
173 chan_send_oclose1(c);
174 c->ostate = CHAN_OUTPUT_CLOSED;
175 } else {
176 error("channel %d: non-open: ostate %d != open",
177 c->self, c->ostate);
178 }
179 return;
180 }
181 switch (c->ostate) { 158 switch (c->ostate) {
182 case CHAN_OUTPUT_OPEN: 159 case CHAN_OUTPUT_OPEN:
183 debug("channel %d: output open -> drain", c->self); 160 debug("channel %d: output open -> drain", c->self);