diff options
Diffstat (limited to 'gtk/recent.c')
-rw-r--r-- | gtk/recent.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/recent.c b/gtk/recent.c index 84120be319..7849d5e99f 100644 --- a/gtk/recent.c +++ b/gtk/recent.c @@ -72,7 +72,7 @@ extern void add_menu_recent_capture_file(gchar *file); recent_settings_t recent; -static char *ts_type_text[] = +static const char *ts_type_text[] = { "RELATIVE", "ABSOLUTE", "ABSOLUTE_WITH_DATE", "DELTA", NULL }; /* Takes an string and a pointer to an array of strings, and a default int value. @@ -81,7 +81,7 @@ static char *ts_type_text[] = * default value that was passed as the third argument is returned. */ static int -find_index_from_string_array(char *needle, char **haystack, int default_value) +find_index_from_string_array(const char *needle, const char **haystack, int default_value) { int i = 0; |