From cc3a2c97a866d18a60aadd438def945932140d9e Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Mon, 3 Aug 2009 16:18:06 +0000 Subject: Use find_dissector() instead of create_dissector_handle(); Fix some indentation. svn path=/trunk/; revision=29273 --- plugins/mate/packet-mate.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'plugins/mate/packet-mate.c') diff --git a/plugins/mate/packet-mate.c b/plugins/mate/packet-mate.c index d533a235f1..bbfa6484e6 100644 --- a/plugins/mate/packet-mate.c +++ b/plugins/mate/packet-mate.c @@ -368,18 +368,17 @@ void proto_register_mate(void) { module_t *mate_module; - dissector_handle_t mate_handle; + dissector_handle_t mate_handle; proto_mate = proto_register_protocol("Meta Analysis Tracing Engine", "MATE", "mate"); register_dissector("mate",mate_tree,proto_mate); mate_module = prefs_register_protocol(proto_mate, proto_reg_handoff_mate); prefs_register_string_preference(mate_module, "config", - "Configuration Filename", - "The name of the file containing the mate module's configuration", - &pref_mate_config_filename); + "Configuration Filename", + "The name of the file containing the mate module's configuration", + &pref_mate_config_filename); - mate_handle = create_dissector_handle(mate_tree, proto_mate); - - register_postdissector(mate_handle); + mate_handle = find_dissector("mate"); + register_postdissector(mate_handle); } -- cgit v1.2.3