aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-slimp3.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-slimp3.c
parenta14b7b5264bb5f0f3f3784d1bd667675e7443447 (diff)
Minor cleanup related to proto_register & proto_reg_handoff
svn path=/trunk/; revision=26280
Diffstat (limited to 'epan/dissectors/packet-slimp3.c')
-rw-r--r--epan/dissectors/packet-slimp3.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/epan/dissectors/packet-slimp3.c b/epan/dissectors/packet-slimp3.c
index a23da863e5..c4608a5a52 100644
--- a/epan/dissectors/packet-slimp3.c
+++ b/epan/dissectors/packet-slimp3.c
@@ -53,8 +53,6 @@ static int hf_slimp3_data_ack = -1;
static gint ett_slimp3 = -1;
-static dissector_handle_t slimp3_handle;
-
#define UDP_PORT_SLIMP3_V1 1069
#define UDP_PORT_SLIMP3_V2 3483
@@ -746,13 +744,14 @@ proto_register_slimp3(void)
"SliMP3", "slimp3");
proto_register_field_array(proto_slimp3, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
-
- slimp3_handle = new_create_dissector_handle(dissect_slimp3, proto_slimp3);
}
void
proto_reg_handoff_slimp3(void)
{
+ dissector_handle_t slimp3_handle;
+
+ slimp3_handle = new_create_dissector_handle(dissect_slimp3, proto_slimp3);
dissector_add("udp.port", UDP_PORT_SLIMP3_V1, slimp3_handle);
dissector_add("udp.port", UDP_PORT_SLIMP3_V2, slimp3_handle);
}