From a2a0eb4767f5e194c4b47195727e88938ee22c5d Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Mon, 8 Feb 2010 18:32:20 +0000 Subject: [PATCH] (Trivial changes): #include not req'd; localize two variables; remove two unneeded forward reference declarations. svn path=/trunk/; revision=31829 --- epan/dissectors/packet-dtn.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/epan/dissectors/packet-dtn.c b/epan/dissectors/packet-dtn.c index 32e1bcf196..f51b48436d 100644 --- a/epan/dissectors/packet-dtn.c +++ b/epan/dissectors/packet-dtn.c @@ -34,7 +34,6 @@ #include "config.h" #endif -#include #include #include @@ -45,8 +44,6 @@ #include "packet-dtn.h" void proto_reg_handoff_bundle(void); -static void dissect_tcp_bundle(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree); -static void dissect_udp_bundle(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree); static int dissect_primary_header(packet_info *pinfo, proto_tree *primary_tree, tvbuff_t *tvb); static int dissect_admin_record(proto_tree *primary_tree, tvbuff_t *tvb, int offset); static int dissect_payload_header(proto_tree *tree, tvbuff_t *tvb, int bundle_offset, int *lastheader); @@ -219,10 +216,6 @@ static gint ett_metadata_hdr = -1; static guint bundle_tcp_port = 4556; static guint bundle_udp_port = 4556; -/* Needed to allow entering port option */ -static guint tcp_port = 0; -static guint udp_port = 0; - static const value_string custody_signal_reason_codes[] = { {0x3, "Redundant Reception"}, {0x4, "Depleted Storage"}, @@ -2573,6 +2566,9 @@ proto_reg_handoff_bundle(void) { static dissector_handle_t tcp_bundle_handle; static dissector_handle_t udp_bundle_handle; + static guint tcp_port; + static guint udp_port; + static int Initialized = FALSE; if (!Initialized) {