diff --git a/src/search/lib.c b/src/search/lib.c index 6add7a591..722ceb53d 100644 --- a/src/search/lib.c +++ b/src/search/lib.c @@ -250,8 +250,8 @@ mc_search_get_types_strings_array (void) { GString *tmp; gchar **ret; - mc_search_type_str_t *type_str; - mc_search_type_str_t *types_str = mc_search_types_list_get (); + const mc_search_type_str_t *type_str; + const mc_search_type_str_t *types_str = mc_search_types_list_get (); tmp = g_string_new (""); type_str = types_str; diff --git a/src/search/search.c b/src/search/search.c index a508a0c5d..aa1d05415 100644 --- a/src/search/search.c +++ b/src/search/search.c @@ -306,7 +306,7 @@ mc_search_is_type_avail (mc_search_type_t search_type) /* --------------------------------------------------------------------------------------------- */ -mc_search_type_str_t * +const mc_search_type_str_t * mc_search_types_list_get (void) { return mc_search__list_types; diff --git a/src/search/search.h b/src/search/search.h index 2dc5d0503..5b8f0a421 100644 --- a/src/search/search.h +++ b/src/search/search.h @@ -124,7 +124,7 @@ gboolean mc_search_run (mc_search_t * mc_search, const void *user_data, gsize st gboolean mc_search_is_type_avail (mc_search_type_t); -mc_search_type_str_t *mc_search_types_list_get (void); +const mc_search_type_str_t *mc_search_types_list_get (void); GString *mc_search_prepare_replace_str (mc_search_t * mc_search, GString * replace_str);