diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-04-09 12:27:57 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-04-09 22:40:30 +0000 |
commit | 6b3714254d41f4e18ecc1df017804c9d94d21d9b (patch) | |
tree | b3fb664550e8d60dc19088f3002f1e53b1ef6e59 /rawshark.c | |
parent | 7d5ce06cbe35f3f818695c87e5b0f42172ee3784 (diff) |
Pull all the "load settings" calls into a epan_load_settings() routine.
That way, nothing using libwireshark needs to know what settings need to
be loaded, they just call epan_load_settings().
Change-Id: I9390e259e286fc4f5acaeaac2767e4c3c4b656af
Reviewed-on: https://code.wireshark.org/review/20983
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'rawshark.c')
-rw-r--r-- | rawshark.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/rawshark.c b/rawshark.c index 43d76be232..988d59ae91 100644 --- a/rawshark.c +++ b/rawshark.c @@ -541,13 +541,8 @@ main(int argc, char *argv[]) goto clean_exit; } - prefs_p = read_prefs(); - - /* - * Read the files that enable and disable protocols and heuristic - * dissectors. - */ - read_enabled_and_disabled_lists(); + /* Load libwireshark settings from the current profile. */ + prefs_p = epan_load_settings(); #ifdef _WIN32 ws_init_dll_search_path(); |