summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-sgsap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-06-20 09:43:28 -0700
committerGuy Harris <guy@alum.mit.edu>2014-06-20 16:43:56 +0000
commitce3d2ff3ded3eccb9d64c6cb46c64ad8f8a837b9 (patch)
tree8a4ddc4ec1607716254ada75c607094da614f131 /epan/dissectors/packet-sgsap.c
parent4df6b5178496422ddfc3b9256af763b847d1a2c7 (diff)
downloadwireshark-ce3d2ff3ded3eccb9d64c6cb46c64ad8f8a837b9.tar.gz
Rename dissector_add_handle() to dissector_add_for_decode_as().
Hopefully that name makes it clear what the routiner's purpose is, and will encourage people to use it rather than using dissector_add_uint() with a bogus integer value. Change-Id: Ic5be456d0ad40b176aab01712ab7b13aed5de2a8 Reviewed-on: https://code.wireshark.org/review/2483 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-sgsap.c')
-rw-r--r--epan/dissectors/packet-sgsap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-sgsap.c b/epan/dissectors/packet-sgsap.c
index 84a706b40c..0a3df2d6c0 100644
--- a/epan/dissectors/packet-sgsap.c
+++ b/epan/dissectors/packet-sgsap.c
@@ -1580,7 +1580,7 @@ proto_reg_handoff_sgsap(void)
gsm_a_dtap_handle = find_dissector("gsm_a_dtap");
if (!Initialized) {
- dissector_add_handle("sctp.port", sgsap_handle); /* for "decode-as" */
+ dissector_add_for_decode_as("sctp.port", sgsap_handle);
Initialized=TRUE;
} else {
dissector_delete_uint_range("sctp.port", sgsap_port_range, sgsap_handle);