DCERPC: remove unused variable and mark another global as static
authorPeter Wu <peter@lekensteyn.nl>
Wed, 10 Oct 2018 13:57:16 +0000 (15:57 +0200)
committerPeter Wu <peter@lekensteyn.nl>
Thu, 11 Oct 2018 10:27:31 +0000 (10:27 +0000)
dcerpc_hooks_init_protos is unused since v1.11.3-rc1-34-g01c8945438.
uuid_dissector_table was added in v2.1.0rc0-391-ge0e574d167 and was not
used outside the file, so mark it as static.

Change-Id: I6113fbaf1f2e2e6241b91b659711986d6e6ded66
Reviewed-on: https://code.wireshark.org/review/30116
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
epan/dissectors/packet-dcerpc.c

index 861b12684fc7b0112adbbe5d436d61c34e7322fa..e21b596c1591438a1800bbe62dd71dc40168e798 100644 (file)
@@ -1019,9 +1019,6 @@ static const fragment_items dcerpc_frag_items = {
     "fragments"
 };
 
-/* list of hooks to be called when init_protocols is done */
-GHookList dcerpc_hooks_init_protos;
-
 /* try to desegment big DCE/RPC packets over TCP? */
 static gboolean dcerpc_cn_desegment = TRUE;
 
@@ -1322,7 +1319,7 @@ typedef struct _dcerpc_dissector_data
  * Subdissectors
  */
 
-dissector_table_t   uuid_dissector_table;
+static dissector_table_t    uuid_dissector_table;
 
 /* the registered subdissectors */
 GHashTable *dcerpc_uuids = NULL;