Make "dissect_data()" static - it's only called through handles.

svn path=/trunk/; revision=5096
This commit is contained in:
Guy Harris 2002-04-04 05:16:15 +00:00
parent dfd6b4fcf0
commit c8fdc30fe2
2 changed files with 4 additions and 9 deletions

View File

@ -2,7 +2,7 @@
* Routines for raw data (default case)
* Gilbert Ramirez <gram@alumni.rice.edu>
*
* $Id: packet-data.c,v 1.27 2002/04/04 03:52:47 gram Exp $
* $Id: packet-data.c,v 1.28 2002/04/04 05:16:14 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@ -39,7 +39,7 @@
*/
int proto_data = -1;
void
static void
dissect_data(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree)
{
int bytes;
@ -64,12 +64,11 @@ proto_register_data(void)
"data" /* abbrev */
);
register_dissector("data",dissect_data,proto_data);
register_dissector("data", dissect_data, proto_data);
/*
* "Data" is used to dissect something whose normal dissector
* is disabled, so it cannot itself be disabled.
*/
proto_set_cant_disable(proto_data);
}

View File

@ -1,7 +1,7 @@
/* plugin_table.h
* Table of exported addresses for Ethereal plugins.
*
* $Id: plugin_table.h,v 1.43 2002/02/27 21:26:37 guy Exp $
* $Id: plugin_table.h,v 1.44 2002/04/04 05:16:15 guy Exp $
*
* Ethereal - Network traffic analyzer
* Copyright 2000 by Gilbert Ramirez <gram@alumni.rice.edu>
@ -72,8 +72,6 @@ typedef dissector_handle_t (*addr_create_dissector_handle)(dissector_t dissector
typedef int (*addr_call_dissector)(dissector_handle_t, tvbuff_t *,
packet_info *, proto_tree *);
typedef void (*addr_dissect_data)(tvbuff_t *, int, packet_info *, proto_tree *);
typedef gboolean (*addr_proto_is_protocol_enabled)(int);
typedef int (*addr_proto_item_get_len)(proto_item*);
@ -261,8 +259,6 @@ typedef struct {
addr_create_dissector_handle p_create_dissector_handle;
addr_call_dissector p_call_dissector;
addr_dissect_data p_dissect_data;
addr_proto_is_protocol_enabled p_proto_is_protocol_enabled;
addr_proto_item_get_len p_proto_item_get_len;