aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mtp2.c
diff options
context:
space:
mode:
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2008-09-27 13:38:59 +0000
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2008-09-27 13:38:59 +0000
commitcba210ee93b5026ae90f9ad99fde7c7e28b43c50 (patch)
tree60eab663e431745281976bf883d74fd5062cc7ea /epan/dissectors/packet-mtp2.c
parentc12cde57d14bb6fb349560a53641bcb157b94c24 (diff)
Small cleanup of proto_reg_handoff & etc
- 'once-only' not req'd in some cases - use find_dissector as appropriate - remove unneeded code git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26284 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-mtp2.c')
-rw-r--r--epan/dissectors/packet-mtp2.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/epan/dissectors/packet-mtp2.c b/epan/dissectors/packet-mtp2.c
index 0101f909df..134e106c90 100644
--- a/epan/dissectors/packet-mtp2.c
+++ b/epan/dissectors/packet-mtp2.c
@@ -62,7 +62,6 @@ static int hf_mtp2_sf_extra = -1;
static gint ett_mtp2 = -1;
static dissector_handle_t mtp3_handle;
-static int mtp3_proto_id;
static gboolean use_extended_sequence_numbers_default = FALSE;
static gboolean use_extended_sequence_numbers = FALSE;
@@ -418,11 +417,9 @@ proto_reg_handoff_mtp2(void)
{
dissector_handle_t mtp2_handle;
- mtp2_handle = create_dissector_handle(dissect_mtp2, proto_mtp2);
-
+ mtp2_handle = find_dissector("mtp2");
dissector_add("wtap_encap", WTAP_ENCAP_MTP2, mtp2_handle);
dissector_add("wtap_encap", WTAP_ENCAP_MTP2_WITH_PHDR, mtp2_handle);
mtp3_handle = find_dissector("mtp3");
- mtp3_proto_id = proto_get_id_by_filter_name("mtp3");
}