From 1474f49f190e5cee4d049d91d360c3d7780ec3d8 Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Thu, 10 Dec 2015 20:56:03 -0500 Subject: new_register_dissector -> register_dissector for remaining uses. Mostly plugins, but also LUA and generated skinny dissector. Change-Id: Ifeb4205442f9a60875266b4e82841ff38b4fdb63 Reviewed-on: https://code.wireshark.org/review/12515 Reviewed-by: Michael Mann --- plugins/ethercat/packet-ams.c | 2 +- plugins/ethercat/packet-ecatmb.c | 2 +- plugins/ethercat/packet-esl.c | 2 +- plugins/ethercat/packet-ethercat-frame.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/ethercat') diff --git a/plugins/ethercat/packet-ams.c b/plugins/ethercat/packet-ams.c index 214a443abd..73a77117e8 100644 --- a/plugins/ethercat/packet-ams.c +++ b/plugins/ethercat/packet-ams.c @@ -1225,7 +1225,7 @@ void proto_register_ams(void) proto_register_field_array(proto_ams, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); - new_register_dissector("ams", dissect_ams, proto_ams); + register_dissector("ams", dissect_ams, proto_ams); } /* The registration hand-off routing */ diff --git a/plugins/ethercat/packet-ecatmb.c b/plugins/ethercat/packet-ecatmb.c index ba8c525c29..15e8c91716 100644 --- a/plugins/ethercat/packet-ecatmb.c +++ b/plugins/ethercat/packet-ecatmb.c @@ -1942,7 +1942,7 @@ void proto_register_ecat_mailbox(void) proto_register_field_array(proto_ecat_mailbox, hf,array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); - new_register_dissector("ecat_mailbox", dissect_ecat_mailbox, proto_ecat_mailbox); + register_dissector("ecat_mailbox", dissect_ecat_mailbox, proto_ecat_mailbox); } void proto_reg_handoff_ecat_mailbox(void) diff --git a/plugins/ethercat/packet-esl.c b/plugins/ethercat/packet-esl.c index dc67ee747d..ead258c0d3 100644 --- a/plugins/ethercat/packet-esl.c +++ b/plugins/ethercat/packet-esl.c @@ -354,7 +354,7 @@ proto_register_esl(void) { proto_register_field_array(proto_esl,hf,array_length(hf)); proto_register_subtree_array(ett,array_length(ett)); - new_register_dissector("esl", dissect_esl_header, proto_esl); + register_dissector("esl", dissect_esl_header, proto_esl); } void diff --git a/plugins/ethercat/packet-ethercat-frame.c b/plugins/ethercat/packet-ethercat-frame.c index 8fb5d3c83e..ca3f5e4c46 100644 --- a/plugins/ethercat/packet-ethercat-frame.c +++ b/plugins/ethercat/packet-ethercat-frame.c @@ -135,7 +135,7 @@ void proto_register_ethercat_frame(void) proto_register_field_array(proto_ethercat_frame,hf,array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); - new_register_dissector("ecatf", dissect_ethercat_frame, proto_ethercat_frame); + register_dissector("ecatf", dissect_ethercat_frame, proto_ethercat_frame); /* Define a handle (ecatf.type) for sub dissectors that want to dissect the Ethercat frame ether type (E88A4) payload. */ -- cgit v1.2.1