aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-tsp.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2008-09-26 20:06:40 +0000
committerBill Meier <wmeier@newsguy.com>2008-09-26 20:06:40 +0000
commitffa7320de25b5bcb606b76a3cfd33bae52a2eab4 (patch)
treed66f6adcd622b89f5972d7caefee9cb897772f21 /epan/dissectors/packet-tsp.c
parenta14b7b5264bb5f0f3f3784d1bd667675e7443447 (diff)
Minor cleanup related to proto_register & proto_reg_handoff
svn path=/trunk/; revision=26280
Diffstat (limited to 'epan/dissectors/packet-tsp.c')
-rw-r--r--epan/dissectors/packet-tsp.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/epan/dissectors/packet-tsp.c b/epan/dissectors/packet-tsp.c
index 579949155c..028c4a47de 100644
--- a/epan/dissectors/packet-tsp.c
+++ b/epan/dissectors/packet-tsp.c
@@ -49,9 +49,6 @@ static int hf_tsp_name = -1;
static gint ett_tsp = -1;
-static dissector_handle_t tsp_handle;
-
-
/* timed port from /etc/services */
#define UDP_PORT_TIMED 525
@@ -176,6 +173,9 @@ dissect_tsp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
void
proto_reg_handoff_tsp(void)
{
+ dissector_handle_t tsp_handle;
+
+ tsp_handle = create_dissector_handle(dissect_tsp, proto_tsp);
dissector_add("udp.port", UDP_PORT_TIMED, tsp_handle);
}
@@ -221,7 +221,5 @@ proto_register_tsp(void)
"TSP", "tsp");
proto_register_field_array(proto_tsp, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
-
- tsp_handle = create_dissector_handle(dissect_tsp, proto_tsp);
}