aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-01-13 16:15:55 -0800
committerGuy Harris <guy@alum.mit.edu>2016-01-14 00:16:20 +0000
commite5c91bc414fb115fb646522cff34152e3266ff38 (patch)
tree7edc4f168351ac883e95a06eb6517061b4ea1af8 /epan
parentd9da77afe85ce91086be80df8802c565c8f9d84d (diff)
Use the return value of register_dissector().
Change-Id: I6814616be9d46e0a075cc3f1d97ded131493b67e Reviewed-on: https://code.wireshark.org/review/13271 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-umts_fp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/dissectors/packet-umts_fp.c b/epan/dissectors/packet-umts_fp.c
index 6c8bc56700..f83a981806 100644
--- a/epan/dissectors/packet-umts_fp.c
+++ b/epan/dissectors/packet-umts_fp.c
@@ -5578,7 +5578,7 @@ void proto_register_fp(void)
expert_register_field_array(expert_fp, ei, array_length(ei));
/* Allow other dissectors to find this one by name. */
- register_dissector("fp", dissect_fp, proto_fp);
+ fp_handle = register_dissector("fp", dissect_fp, proto_fp);
/* Preferences */
fp_module = prefs_register_protocol(proto_fp, NULL);
@@ -5644,7 +5644,6 @@ void proto_reg_handoff_fp(void)
mac_fdd_edch_handle = find_dissector("mac.fdd.edch");
mac_fdd_edch_type2_handle = find_dissector("mac.fdd.edch.type2");
mac_fdd_hsdsch_handle = find_dissector("mac.fdd.hsdsch");
- fp_handle = find_dissector("fp");
heur_dissector_add("udp", heur_dissect_fp, "FP over UDP", "fp_udp", proto_fp, HEURISTIC_DISABLE);
dissector_add_uint("atm.aal2.type", TRAF_UMTS_FP, fp_handle);