From 203cd2cba90014acf1452f8eaf502d5c5f7fd9a2 Mon Sep 17 00:00:00 2001 From: John Thacker Date: Sun, 7 Aug 2022 09:28:32 -0400 Subject: prefs: More cleanup, auto prefs Remove callback function from pref registrations for dissectors that don't need a callback. In other dissectors, move registration that only needs to be done once inside the check for initialization, avoiding some console messages when preferences are changed ("Duplicate dissectors (anonymous) and (anonymous) for protocol...") and the like. Add a couple auto preferences for dissectors missed in previous waves. Ping #14319 --- epan/dissectors/packet-thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/dissectors/packet-thread.c') diff --git a/epan/dissectors/packet-thread.c b/epan/dissectors/packet-thread.c index 491230faab..808ab838ac 100644 --- a/epan/dissectors/packet-thread.c +++ b/epan/dissectors/packet-thread.c @@ -3365,7 +3365,7 @@ proto_register_thread(void) proto_thread = proto_register_protocol("Thread", "Thread", "thread"); - thread_module = prefs_register_protocol(proto_thread, proto_reg_handoff_thread); + thread_module = prefs_register_protocol(proto_thread, NULL); prefs_register_obsolete_preference(thread_module, "thr_coap_decode"); prefs_register_string_preference(thread_module, "thr_seq_ctr", "Thread sequence counter", -- cgit v1.2.3