diff options
author | 2000-03-28 20:31:25 +0000 | |
---|---|---|
committer | 2000-03-28 20:31:25 +0000 | |
commit | bee6f3ad39c946f2f39815a241ceaf6a000c1961 (patch) | |
tree | 82e9a46336df623bb8c59fb1c0943d980c553cfd /usr.bin/ssh/nchan.c | |
parent | KNF (diff) | |
download | wireguard-openbsd-bee6f3ad39c946f2f39815a241ceaf6a000c1961.tar.xz wireguard-openbsd-bee6f3ad39c946f2f39815a241ceaf6a000c1961.zip |
replace big switch() with function tables (prepare for ssh2)
Diffstat (limited to 'usr.bin/ssh/nchan.c')
-rw-r--r-- | usr.bin/ssh/nchan.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/ssh/nchan.c b/usr.bin/ssh/nchan.c index 1f30a7cf2c6..48b61ef541d 100644 --- a/usr.bin/ssh/nchan.c +++ b/usr.bin/ssh/nchan.c @@ -28,7 +28,7 @@ */ #include "includes.h" -RCSID("$Id: nchan.c,v 1.10 2000/01/10 10:15:28 markus Exp $"); +RCSID("$Id: nchan.c,v 1.11 2000/03/28 20:31:27 markus Exp $"); #include "ssh.h" @@ -41,7 +41,6 @@ static void chan_send_ieof(Channel *c); static void chan_send_oclose(Channel *c); static void chan_shutdown_write(Channel *c); static void chan_shutdown_read(Channel *c); -static void chan_delete_if_full_closed(Channel *c); /* * EVENTS update channel input/output states execute ACTIONS @@ -222,7 +221,7 @@ chan_shutdown_read(Channel *c) error("chan_shutdown_read failed for #%d/fd%d [i%d o%d]: %.100s", c->self, c->sock, c->istate, c->ostate, strerror(errno)); } -static void +void chan_delete_if_full_closed(Channel *c) { if (c->istate == CHAN_INPUT_CLOSED && c->ostate == CHAN_OUTPUT_CLOSED) { |