diff options
author | Michael Mann <mmann78@netscape.net> | 2012-08-08 21:40:22 +0000 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2012-08-08 21:40:22 +0000 |
commit | c5a649d6137b11619a9e0db8523bfcdc2d08fed4 (patch) | |
tree | d86d847b1a69e2fe475bd614b1c116b335ca0d2b /epan/prefs.c | |
parent | 58e6d17082b97b6f1d22d15c6a40245461cff61c (diff) |
Complete compiler warnings from r44348
svn path=/trunk/; revision=44364
Diffstat (limited to 'epan/prefs.c')
-rw-r--r-- | epan/prefs.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/epan/prefs.c b/epan/prefs.c index e329edb287..cea37995ff 100644 --- a/epan/prefs.c +++ b/epan/prefs.c @@ -1992,7 +1992,7 @@ prefs_register_modules(void) custom_cbs.reset_cb = console_log_level_reset_cb; custom_cbs.set_cb = console_log_level_set_cb; custom_cbs.write_cb = console_log_level_write_cb; - prefs_register_uint_custom_preference(gui_column_module, "log.level", "logging level", + prefs_register_uint_custom_preference(console_module, "log.level", "logging level", "A bitmask of glib log levels", &custom_cbs, &prefs.console_log_level); /* Capture @@ -2321,27 +2321,6 @@ find_val_for_string(const char *needle, const enum_val_t *haystack, return default_value; } -#if 0 -/* Takes an string and a pointer to an array of strings, and a default int value. - * The array must be terminated by a NULL string. If the string is found in the array - * of strings, the index of that string in the array is returned. Otherwise, the - * default value that was passed as the third argument is returned. - */ -static int -find_index_from_string_array(char *needle, const char **haystack, int default_value) -{ - int i = 0; - - while (haystack[i] != NULL) { - if (strcmp(needle, haystack[i]) == 0) { - return i; - } - i++; - } - return default_value; -} -#endif - /* Preferences file format: * - Configuration directives start at the beginning of the line, and * are terminated with a colon. |