From 95267f647adb60b659991380203db2ba7e2a322b Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 27 Nov 2001 07:36:23 +0000 Subject: 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 --- packet-wcp.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'packet-wcp.c') 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 * - * $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 @@ -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)) -- cgit v1.2.3