diff options
author | wmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-01-28 21:52:57 +0000 |
---|---|---|
committer | wmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-01-28 21:52:57 +0000 |
commit | ce1bbc0e2bde2814e78aada513f14e15b7757147 (patch) | |
tree | d9f7c69a0c0818a539cd0a3ff9d6e7768a5f13fb /epan/dissectors/packet-rtps2.c | |
parent | d86fa3b5910a9073ed857e5749561ccf53c7af77 (diff) |
Minor changes mostly related to proto_register & proto_reg_handoff;
- Use 'dissector standard template format'
- Remove 'once-only' ["if (!initialized) ..."] if not req'd
- Misc
Also: adjust some indentation
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27324 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-rtps2.c')
-rw-r--r-- | epan/dissectors/packet-rtps2.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/epan/dissectors/packet-rtps2.c b/epan/dissectors/packet-rtps2.c index f0fa12c9ec..56b8f549e1 100644 --- a/epan/dissectors/packet-rtps2.c +++ b/epan/dissectors/packet-rtps2.c @@ -830,13 +830,6 @@ static gboolean dissect_rtps(tvbuff_t *, packet_info *, proto_tree *); /* static gboolean glob_do_something = TRUE; */ static guint rtps_max_batch_samples_dissected = 16; -static void reinit_rtps(void) { - /* Do something here when global arguments are changed */ -} - - - - /* *********************************************************************** */ /* Appends a submessage description to the info summary text @@ -9250,22 +9243,13 @@ void proto_register_rtps2(void) { proto_register_subtree_array(ett, array_length(ett)); /* Registers the control in the preference panel */ - rtps_module = prefs_register_protocol(proto_rtps, reinit_rtps); -/* - prefs_register_bool_preference(rtps_module, "do_something", - "Do somethinig short description", - "Do something long and very exhaustive description " - "that can go on and on and on and on... ", - &glob_do_something); -*/ + rtps_module = prefs_register_protocol(proto_rtps, NULL); prefs_register_uint_preference(rtps_module, "max_batch_samples_dissected", "Max samples dissected for DATA_BATCH", "Specifies the maximum number of samples dissected in " "a DATA_BATCH submessage. Increasing this value may affect " "performances if the trace has a lot of big batched samples.", 10, &rtps_max_batch_samples_dissected); - - } void proto_reg_handoff_rtps2(void) { |