aboutsummaryrefslogtreecommitdiffstats
path: root/packet-telnet.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-03-23 10:49:33 +0000
committerGuy Harris <guy@alum.mit.edu>2000-03-23 10:49:33 +0000
commitdf1a7250cf18b6c44c87466892f74dd1a1cb3fcf (patch)
tree8e813f047af7490074f628f998a5be035ef9df77 /packet-telnet.c
parenta7cc3d8a4fa1a5ef5d171ffeb7f5072cf709d751 (diff)
Get rid of some unnecessary variables.
svn path=/trunk/; revision=1747
Diffstat (limited to 'packet-telnet.c')
-rw-r--r--packet-telnet.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/packet-telnet.c b/packet-telnet.c
index d0c3fc4f70..06b9ce6984 100644
--- a/packet-telnet.c
+++ b/packet-telnet.c
@@ -2,7 +2,7 @@
* Routines for telnet packet dissection
* Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com>
*
- * $Id: packet-telnet.c,v 1.9 2000/03/23 10:25:38 guy Exp $
+ * $Id: packet-telnet.c,v 1.10 2000/03/23 10:49:33 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -182,8 +182,7 @@ telnet_will_wont_do_dont(proto_tree *telnet_tree, const u_char *pd,
}
static int
-telnet_command(proto_tree *telnet_tree, const u_char *pd,
- int start_offset, int max_data)
+telnet_command(proto_tree *telnet_tree, const u_char *pd, int start_offset)
{
int offset = start_offset;
u_char optcode;
@@ -295,17 +294,13 @@ void
dissect_telnet(const u_char *pd, int offset, frame_data *fd, proto_tree *tree)
{
proto_tree *telnet_tree, *ti;
- int max_data = pi.captured_len - offset;
if (check_col(fd, COL_PROTOCOL))
col_add_str(fd, COL_PROTOCOL, "TELNET");
- if (check_col(fd, COL_INFO)) {
-
+ if (check_col(fd, COL_INFO))
col_add_fstr(fd, COL_INFO, "Telnet Data ...");
- }
-
if (tree) {
int data_offset;
int data_len;
@@ -336,7 +331,7 @@ dissect_telnet(const u_char *pd, int offset, frame_data *fd, proto_tree *tree)
/*
* Now interpret the command.
*/
- offset = telnet_command(telnet_tree, pd, offset, max_data);
+ offset = telnet_command(telnet_tree, pd, offset);
data_offset = offset;
}
else {