From 4d3d6af6437eba13da83e5196bdaafec3ecde2e7 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 18 Dec 2015 01:27:29 -0800 Subject: 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 --- epan/prefs.c | 7 ++++++- epan/prefs.h | 5 ----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'epan') 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 /* 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. -- cgit v1.2.3