diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2018-01-22 08:16:42 +0000 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2018-01-28 21:34:12 +0000 |
commit | 5d1687e449a8441f606a4559734f2fae5879f4f5 (patch) | |
tree | c659c8c8be5d1a5c39f323ca5251ef77c3649006 /wsutil/plugins.c | |
parent | 285a0f5a967fd0a473611599a1677bf96038d6fe (diff) |
Rename plugins_scan_dir()
This makes it more obvious that it is a static function.
Change-Id: I7348c4326b1e388870cb6657d9c67bd1086357b0
Reviewed-on: https://code.wireshark.org/review/25499
Reviewed-by: João Valverde <j@v6e.pt>
Diffstat (limited to 'wsutil/plugins.c')
-rw-r--r-- | wsutil/plugins.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/wsutil/plugins.c b/wsutil/plugins.c index 88c4fbc11d..3fdcae8669 100644 --- a/wsutil/plugins.c +++ b/wsutil/plugins.c @@ -99,7 +99,7 @@ compare_plugins(gconstpointer a, gconstpointer b) } static void -plugins_scan_dir(GHashTable *plugins_module, const char *dirpath, plugin_type_e type, gboolean append_type) +scan_plugins_dir(GHashTable *plugins_module, const char *dirpath, plugin_type_e type, gboolean append_type) { GDir *dir; const char *name; /* current file name */ @@ -215,7 +215,7 @@ scan_plugins_build_dir(GHashTable *plugins_module, plugin_type_e type) WS_DIRENT *file; /* current file */ /* Cmake */ - plugins_scan_dir(plugins_module, get_plugins_dir_with_version(), type, TRUE); + scan_plugins_dir(plugins_module, get_plugins_dir_with_version(), type, TRUE); /* Autotools */ dirpath = g_build_filename(get_plugins_dir(), type_to_dir(type), (char *)NULL); @@ -247,7 +247,7 @@ scan_plugins_build_dir(GHashTable *plugins_module, plugin_type_e type) g_free(plugin_folder); plugin_folder = g_build_filename(get_plugins_dir(), name, (gchar *)NULL); } - plugins_scan_dir(plugins_module, plugin_folder, type, FALSE); + scan_plugins_dir(plugins_module, plugin_folder, type, FALSE); g_free(plugin_folder); } ws_dir_close(dir); @@ -276,7 +276,7 @@ plugins_init(plugin_type_e type) scan_plugins_build_dir(plugins_module, type); } else { - plugins_scan_dir(plugins_module, get_plugins_dir_with_version(), type, TRUE); + scan_plugins_dir(plugins_module, get_plugins_dir_with_version(), type, TRUE); } /* @@ -288,7 +288,7 @@ plugins_init(plugin_type_e type) * reclaim them before each time we start capturing.) */ if (!started_with_special_privs()) { - plugins_scan_dir(plugins_module, get_plugins_pers_dir_with_version(), type, TRUE); + scan_plugins_dir(plugins_module, get_plugins_pers_dir_with_version(), type, TRUE); } plugins_module_list = g_slist_prepend(plugins_module_list, plugins_module); |