aboutsummaryrefslogtreecommitdiffstats
path: root/epan/prefs.c
diff options
context:
space:
mode:
authorTomas Kukosa <tomas.kukosa@siemens.com>2007-11-30 11:12:55 +0000
committerTomas Kukosa <tomas.kukosa@siemens.com>2007-11-30 11:12:55 +0000
commitaab2bf936e9fffeb7e71641a51b50a90a4b74233 (patch)
treeacfc102eea312b3f1ea30d550ed76a0b14cc772c /epan/prefs.c
parent6caaafbb6d662da8d2561399a35c0aeee7642a46 (diff)
- fix warnings in prefs.c
- do not flush SSL debug output after each message but only once per packet svn path=/trunk/; revision=23680
Diffstat (limited to 'epan/prefs.c')
-rw-r--r--epan/prefs.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/epan/prefs.c b/epan/prefs.c
index c3bfe10872..2e710202c2 100644
--- a/epan/prefs.c
+++ b/epan/prefs.c
@@ -118,11 +118,17 @@ static GTree *modules = NULL;
*/
static GTree *top_level_modules = NULL;
+gint
+cmp_names(gconstpointer a, gconstpointer b)
+{
+ return g_ascii_strcasecmp((const gchar*)a, (const gchar*)b);
+}
+
/** Sets up memory used by proto routines. Called at program startup */
void prefs_init(void)
{
- modules = g_tree_new(g_ascii_strcasecmp);
- top_level_modules = g_tree_new(g_ascii_strcasecmp);
+ modules = g_tree_new(cmp_names);
+ top_level_modules = g_tree_new(cmp_names);
}
@@ -194,7 +200,7 @@ prefs_register_module_or_subtree(module_t *parent, const char *name,
module->description = description;
module->apply_cb = apply_cb;
module->prefs = NULL; /* no preferences, to start */
- module->submodules = g_tree_new(g_ascii_strcasecmp); /* no submodules, to start */
+ module->submodules = g_tree_new(cmp_names); /* no submodules, to start */
module->numprefs = 0;
module->prefs_changed = FALSE;
module->obsolete = FALSE;