aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2008-09-25 02:21:04 +0000
committerBill Meier <wmeier@newsguy.com>2008-09-25 02:21:04 +0000
commit432f7be1e0a25fe24622d24066839f6c89499931 (patch)
tree40130a7b7cbd7468aca29dc99e4b78958971cc52
parent33ad445703a44fb761bd46b3c760fa15ff99772f (diff)
Minor proto_reg_handoff cleanup
svn path=/trunk/; revision=26265
-rw-r--r--epan/dissectors/packet-dpnss.c3
-rw-r--r--epan/dissectors/packet-dsi.c2
-rw-r--r--epan/dissectors/packet-echo.c2
-rw-r--r--epan/dissectors/packet-fcsp.c6
-rw-r--r--epan/dissectors/packet-gsm_a_rp.c3
-rw-r--r--epan/dissectors/packet-gsm_bsslap.c4
-rw-r--r--epan/dissectors/packet-gsm_sms.c3
-rw-r--r--epan/dissectors/packet-gsm_sms_ud.c7
8 files changed, 2 insertions, 28 deletions
diff --git a/epan/dissectors/packet-dpnss.c b/epan/dissectors/packet-dpnss.c
index 6352d12cde..1b7d7c1bd8 100644
--- a/epan/dissectors/packet-dpnss.c
+++ b/epan/dissectors/packet-dpnss.c
@@ -1494,9 +1494,6 @@ dissect_dpnss(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
void
proto_reg_handoff_dpnss(void)
{
- dissector_handle_t dpnss_handle;
-
- dpnss_handle = create_dissector_handle(dissect_dpnss, proto_dpnss);
}
void
diff --git a/epan/dissectors/packet-dsi.c b/epan/dissectors/packet-dsi.c
index 8e39400a40..2793c08110 100644
--- a/epan/dissectors/packet-dsi.c
+++ b/epan/dissectors/packet-dsi.c
@@ -861,7 +861,7 @@ proto_register_dsi(void)
void
proto_reg_handoff_dsi(void)
{
- static dissector_handle_t dsi_handle;
+ dissector_handle_t dsi_handle;
dsi_handle = create_dissector_handle(dissect_dsi, proto_dsi);
dissector_add("tcp.port", TCP_PORT_DSI, dsi_handle);
diff --git a/epan/dissectors/packet-echo.c b/epan/dissectors/packet-echo.c
index eaa6f1f84c..12f06fc780 100644
--- a/epan/dissectors/packet-echo.c
+++ b/epan/dissectors/packet-echo.c
@@ -117,7 +117,7 @@ void proto_register_echo(void)
void proto_reg_handoff_echo(void)
{
- dissector_handle_t echo_handle = NULL;
+ dissector_handle_t echo_handle;
echo_handle = create_dissector_handle(dissect_echo, proto_echo);
diff --git a/epan/dissectors/packet-fcsp.c b/epan/dissectors/packet-fcsp.c
index f335be3fb0..e2edcabf1c 100644
--- a/epan/dissectors/packet-fcsp.c
+++ b/epan/dissectors/packet-fcsp.c
@@ -574,8 +574,6 @@ proto_register_fcsp (void)
/* Required function calls to register the header fields and subtrees used */
proto_register_field_array(proto_fcsp, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
-
- data_handle = find_dissector("data");
}
/* If this dissector uses sub-dissector registration add a registration routine.
@@ -585,10 +583,6 @@ proto_register_fcsp (void)
void
proto_reg_handoff_fcsp (void)
{
- dissector_handle_t fcsp_handle;
-
- fcsp_handle = create_dissector_handle (dissect_fcsp, proto_fcsp);
-
data_handle = find_dissector ("data");
}
diff --git a/epan/dissectors/packet-gsm_a_rp.c b/epan/dissectors/packet-gsm_a_rp.c
index b97ed0ead3..4c91e8d9b3 100644
--- a/epan/dissectors/packet-gsm_a_rp.c
+++ b/epan/dissectors/packet-gsm_a_rp.c
@@ -81,8 +81,6 @@ static gint ett_rp_msg = -1;
static char a_bigbuf[1024];
-static dissector_handle_t rp_handle;
-
static dissector_table_t sms_dissector_table; /* SMS TPDU */
static packet_info *g_pinfo;
@@ -597,5 +595,4 @@ proto_register_gsm_a_rp(void)
void
proto_reg_handoff_gsm_a_rp(void)
{
- rp_handle = create_dissector_handle(dissect_rp, proto_a_rp);
}
diff --git a/epan/dissectors/packet-gsm_bsslap.c b/epan/dissectors/packet-gsm_bsslap.c
index 0b21639336..cb6675ba39 100644
--- a/epan/dissectors/packet-gsm_bsslap.c
+++ b/epan/dissectors/packet-gsm_bsslap.c
@@ -359,10 +359,6 @@ dissect_gsm_bsslap_apdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
void
proto_reg_handoff_gsm_bsslap(void)
{
- dissector_handle_t gsm_bsslap_handle;
-
- gsm_bsslap_handle = create_dissector_handle(dissect_gsm_bsslap_apdu, proto_gsm_bsslap);
-
}
void
diff --git a/epan/dissectors/packet-gsm_sms.c b/epan/dissectors/packet-gsm_sms.c
index 5a0fb7d721..9b94e94fc0 100644
--- a/epan/dissectors/packet-gsm_sms.c
+++ b/epan/dissectors/packet-gsm_sms.c
@@ -118,7 +118,6 @@ static gint hf_gsm_sms_coding_group_bits2 = -1;
static gint hf_gsm_sms_coding_group_bits4 = -1;
static char bigbuf[1024];
-static dissector_handle_t data_handle;
static packet_info *g_pinfo;
static proto_tree *g_tree;
@@ -2740,6 +2739,4 @@ proto_reg_handoff_gsm_sms(void)
dissector_add("gsm_a.sms_tpdu", 0, gsm_sms_handle);
dissector_add("gsm_map.sms_tpdu", 0, gsm_sms_handle);
-
- data_handle = find_dissector("data");
}
diff --git a/epan/dissectors/packet-gsm_sms_ud.c b/epan/dissectors/packet-gsm_sms_ud.c
index 9a95f83354..8c5e8649f8 100644
--- a/epan/dissectors/packet-gsm_sms_ud.c
+++ b/epan/dissectors/packet-gsm_sms_ud.c
@@ -627,13 +627,6 @@ proto_register_gsm_sms_ud(void)
void
proto_reg_handoff_gsm_sms_ud(void)
{
- dissector_handle_t gsm_sms_ud_handle;
- gsm_sms_ud_handle = create_dissector_handle(dissect_gsm_sms_ud,
- proto_gsm_sms_ud);
-
wsp_handle = find_dissector("wsp-cl");
DISSECTOR_ASSERT(wsp_handle);
}
-
-
-