aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mate/packet-mate.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2009-08-03 16:18:06 +0000
committerBill Meier <wmeier@newsguy.com>2009-08-03 16:18:06 +0000
commitcc3a2c97a866d18a60aadd438def945932140d9e (patch)
treedf7aa6c99bf486e28a1584b8d9c8145630adb600 /plugins/mate/packet-mate.c
parent1792c7d1a4e5ef44bd5c6e9751fe1d1199ea541f (diff)
Use find_dissector() instead of create_dissector_handle();
Fix some indentation. svn path=/trunk/; revision=29273
Diffstat (limited to 'plugins/mate/packet-mate.c')
-rw-r--r--plugins/mate/packet-mate.c13
1 files changed, 6 insertions, 7 deletions
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);
}