diff options
author | Bill Meier <wmeier@newsguy.com> | 2008-10-25 20:24:31 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2008-10-25 20:24:31 +0000 |
commit | 05c1929f1d51ef94a5827147aee61d2320434783 (patch) | |
tree | 3e6cc68f2dc569fe027498b7deb3d0574cd99c09 /plugins/ethercat/packet-ethercat-frame.c | |
parent | 94c73a47c9e361b6eeeecf53e9b600f9cf1b77a9 (diff) | |
download | wireshark-05c1929f1d51ef94a5827147aee61d2320434783.tar.gz |
proto_register/proto_reg_handoff; Various small cleanup and bug-fixing
remove unnecessary #include prefs.f and emem.h in a few cases...
svn path=/trunk/; revision=26554
Diffstat (limited to 'plugins/ethercat/packet-ethercat-frame.c')
-rw-r--r-- | plugins/ethercat/packet-ethercat-frame.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/ethercat/packet-ethercat-frame.c b/plugins/ethercat/packet-ethercat-frame.c index c2d5845795..4ab5920932 100644 --- a/plugins/ethercat/packet-ethercat-frame.c +++ b/plugins/ethercat/packet-ethercat-frame.c @@ -45,8 +45,6 @@ #include "packet-ethercat-frame.h" -void proto_reg_handoff_ethercat_frame(void); - /* Define the Ethercat frame proto */ static int proto_ethercat_frame = -1; @@ -166,9 +164,9 @@ void proto_register_ethercat_frame(void) void proto_reg_handoff_ethercat_frame(void) { - static dissector_handle_t ethercat_frame_handle; + dissector_handle_t ethercat_frame_handle; - ethercat_frame_handle = create_dissector_handle(dissect_ethercat_frame, proto_ethercat_frame); + ethercat_frame_handle = find_dissector("ecatf"); dissector_add("ethertype", ETHERTYPE_ECATF, ethercat_frame_handle); dissector_add("udp.port", ETHERTYPE_ECATF, ethercat_frame_handle); dissector_add("tcp.port", ETHERTYPE_ECATF, ethercat_frame_handle); |