aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-fix.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2008-09-15 16:36:06 +0000
committerBill Meier <wmeier@newsguy.com>2008-09-15 16:36:06 +0000
commit9a6db6e9451d47d812c3213ce42e633927b900d0 (patch)
treefaee990d1203f64304a68bb091e844d0fcf3fe4f /epan/dissectors/packet-fix.c
parent1e7e3cee51ac00f1a54c9c40f9adc90d82987a62 (diff)
proto_reg-handoff: Use dissector_add_handle instead of registering to port 0;
Also: minor cleanup related to proto_reg_handoff svn path=/trunk/; revision=26197
Diffstat (limited to 'epan/dissectors/packet-fix.c')
-rw-r--r--epan/dissectors/packet-fix.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/epan/dissectors/packet-fix.c b/epan/dissectors/packet-fix.c
index e24e318c1f..8167e05dc8 100644
--- a/epan/dissectors/packet-fix.c
+++ b/epan/dissectors/packet-fix.c
@@ -6439,14 +6439,11 @@ proto_register_fix(void)
void
proto_reg_handoff_fix(void)
{
- static dissector_handle_t fix_handle;
- /*
- * The first time the function is called let the tcp dissector
- * know that we're interested in traffic
- */
+ dissector_handle_t fix_handle;
+ /* Let the tcp dissector know that we're interested in traffic */
heur_dissector_add("tcp", dissect_fix, proto_fix);
- /* Register fix to TCP port 0 to be able to do "dissect as"*/
- fix_handle = new_create_dissector_handle(dissect_fix, proto_fix);
- dissector_add("tcp.port", 0, fix_handle);
+ /* Register a fix handle to "tcp.port" to be able to do 'decode-as' */
+ fix_handle = new_create_dissector_handle(dissect_fix, proto_fix);
+ dissector_add_handle("tcp.port", fix_handle);
}