diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-04-04 05:16:15 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-04-04 05:16:15 +0000 |
commit | c8fdc30fe250dfde468b366483b78a3acba3e382 (patch) | |
tree | beed547255ec916a6f66ff5d31b59e4f8cf6046a | |
parent | dfd6b4fcf0d9b38c7cdaf4574e28fd21ca6905d7 (diff) |
Make "dissect_data()" static - it's only called through handles.
svn path=/trunk/; revision=5096
-rw-r--r-- | packet-data.c | 7 | ||||
-rw-r--r-- | plugins/plugin_table.h | 6 |
2 files changed, 4 insertions, 9 deletions
diff --git a/packet-data.c b/packet-data.c index 9df1aa1522..7b01c9504f 100644 --- a/packet-data.c +++ b/packet-data.c @@ -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); - } diff --git a/plugins/plugin_table.h b/plugins/plugin_table.h index e676d3566a..89cd06a865 100644 --- a/plugins/plugin_table.h +++ b/plugins/plugin_table.h @@ -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; |