diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-12-18 01:27:29 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-12-18 09:28:01 +0000 |
commit | 4d3d6af6437eba13da83e5196bdaafec3ecde2e7 (patch) | |
tree | e8fbdb451e0e762369c0584f589dd30be05c2914 /epan | |
parent | 47a4c8f395280bd78bbc733424bb409c00d2c390 (diff) |
prefs_register_modules() is used only in epan/prefs.c; make it static.
Change-Id: If2a5ad5c836c5dfddb4f6c4ffa41c52e52f2b671
Reviewed-on: https://code.wireshark.org/review/12717
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan')
-rw-r--r-- | epan/prefs.c | 7 | ||||
-rw-r--r-- | epan/prefs.h | 5 |
2 files changed, 6 insertions, 6 deletions
diff --git a/epan/prefs.c b/epan/prefs.c index f2f286857d..495c2cf568 100644 --- a/epan/prefs.c +++ b/epan/prefs.c @@ -53,10 +53,15 @@ #include <epan/stats_tree.h> /* Internal functions */ + +/* + * Register all non-dissector modules' preferences. + */ static module_t *find_subtree(module_t *parent, const char *tilte); static module_t *prefs_register_module_or_subtree(module_t *parent, const char *name, const char *title, const char *description, gboolean is_subtree, void (*apply_cb)(void), gboolean use_gui); +static void prefs_register_modules(void); static prefs_set_pref_e set_pref(gchar*, const gchar*, void *, gboolean); static void free_col_info(GList *); static void pre_init_prefs(void); @@ -2069,7 +2074,7 @@ static module_t *gui_module = NULL; static module_t *gui_color_module = NULL; static module_t *nameres_module = NULL; -void +static void prefs_register_modules(void) { module_t *printing, *capture_module, *console_module, diff --git a/epan/prefs.h b/epan/prefs.h index ba097cd7ee..0f2834e43b 100644 --- a/epan/prefs.h +++ b/epan/prefs.h @@ -525,11 +525,6 @@ WS_DLL_PUBLIC GList *prefs_get_string_list(const gchar *str); /* Clear the given list of string data. */ WS_DLL_PUBLIC void prefs_clear_string_list(GList *sl); -/* - * Register all non-dissector modules' preferences. - */ -WS_DLL_PUBLIC void prefs_register_modules(void); - /** Fetch a short preference type name, e.g. "Integer". * * @param pref A preference. |