diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-11-27 07:36:23 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-11-27 07:36:23 +0000 |
commit | 95267f647adb60b659991380203db2ba7e2a322b (patch) | |
tree | cd743bf25f5564044cd3e57b05bc6c93bb6a17b5 /packet-wcp.c | |
parent | 703189dd9d787237fc65894616300c6a87f79c32 (diff) |
Get rid of some code to set "pinfo->current_proto"; let the Ethereal
infrastructure do it for the dissectors.
Make some WCP dissector routines static.
svn path=/trunk/; revision=4283
Diffstat (limited to 'packet-wcp.c')
-rw-r--r-- | packet-wcp.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/packet-wcp.c b/packet-wcp.c index aaaa68919a..080686f6e5 100644 --- a/packet-wcp.c +++ b/packet-wcp.c @@ -2,7 +2,7 @@ * Routines for Wellfleet Compression frame disassembly * Copyright 2001, Jeffrey C. Foster <jfoste@woodward.com> * - * $Id: packet-wcp.c,v 1.15 2001/11/27 07:13:26 guy Exp $ + * $Id: packet-wcp.c,v 1.16 2001/11/27 07:36:23 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -278,7 +278,7 @@ dissect_wcp_reset( tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tr } -void wcp_save_data( tvbuff_t *tvb, packet_info *pinfo){ +static void wcp_save_data( tvbuff_t *tvb, packet_info *pinfo){ wcp_window_t *buf_ptr = 0; int len; @@ -302,7 +302,7 @@ void wcp_save_data( tvbuff_t *tvb, packet_info *pinfo){ } -void dissect_wcp( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { +static void dissect_wcp( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { proto_tree *wcp_tree; proto_item *ti; @@ -310,8 +310,6 @@ void dissect_wcp( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { guint16 temp, cmd, ext_cmd, seq; tvbuff_t *next_tvb; - pinfo->current_proto = "WCP"; - if (check_col(pinfo->fd, COL_PROTOCOL)) col_set_str(pinfo->fd, COL_PROTOCOL, "WCP"); if (check_col(pinfo->fd, COL_INFO)) |