diff options
author | Damien Miller <djm@mindrot.org> | 2002-01-22 23:17:30 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2002-01-22 23:17:30 +1100 |
commit | 630d6f4479df4084ef05ce233c11e66c68a98a4f (patch) | |
tree | 27dc26ac3fd5bb1131ca39187899dfe2494117c4 /dispatch.c | |
parent | dff5099f13e2e679b93d3cfe7073c9cd92b19b06 (diff) |
- markus@cvs.openbsd.org 2001/12/28 15:06:00
[auth2.c auth2-chall.c channels.c channels.h clientloop.c dispatch.c dispatch.h kex.c kex.h serverloop.c ssh.c sshconnect2.c]
remove plen from the dispatch fn. it's no longer used.
Diffstat (limited to 'dispatch.c')
-rw-r--r-- | dispatch.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/dispatch.c b/dispatch.c index 871fa24d2..157c25cbb 100644 --- a/dispatch.c +++ b/dispatch.c | |||
@@ -22,7 +22,7 @@ | |||
22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
23 | */ | 23 | */ |
24 | #include "includes.h" | 24 | #include "includes.h" |
25 | RCSID("$OpenBSD: dispatch.c,v 1.13 2001/12/28 14:50:54 markus Exp $"); | 25 | RCSID("$OpenBSD: dispatch.c,v 1.14 2001/12/28 15:06:00 markus Exp $"); |
26 | 26 | ||
27 | #include "ssh1.h" | 27 | #include "ssh1.h" |
28 | #include "ssh2.h" | 28 | #include "ssh2.h" |
@@ -37,10 +37,9 @@ RCSID("$OpenBSD: dispatch.c,v 1.13 2001/12/28 14:50:54 markus Exp $"); | |||
37 | dispatch_fn *dispatch[DISPATCH_MAX]; | 37 | dispatch_fn *dispatch[DISPATCH_MAX]; |
38 | 38 | ||
39 | void | 39 | void |
40 | dispatch_protocol_error(int type, int plen, u_int32_t seq, void *ctxt) | 40 | dispatch_protocol_error(int type, u_int32_t seq, void *ctxt) |
41 | { | 41 | { |
42 | fatal("dispatch_protocol_error: type %d seq %u plen %d", type, | 42 | fatal("dispatch_protocol_error: type %d seq %u", type, seq); |
43 | seq, plen); | ||
44 | } | 43 | } |
45 | void | 44 | void |
46 | dispatch_init(dispatch_fn *dflt) | 45 | dispatch_init(dispatch_fn *dflt) |
@@ -69,7 +68,7 @@ dispatch_run(int mode, int *done, void *ctxt) | |||
69 | return; | 68 | return; |
70 | } | 69 | } |
71 | if (type > 0 && type < DISPATCH_MAX && dispatch[type] != NULL) | 70 | if (type > 0 && type < DISPATCH_MAX && dispatch[type] != NULL) |
72 | (*dispatch[type])(type, 1234, seqnr, ctxt); | 71 | (*dispatch[type])(type, seqnr, ctxt); |
73 | else | 72 | else |
74 | packet_disconnect("protocol error: rcvd type %d", type); | 73 | packet_disconnect("protocol error: rcvd type %d", type); |
75 | if (done != NULL && *done) | 74 | if (done != NULL && *done) |