mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
Warning fix: return discards qualifiers from pointer target type
search.c:312: return discards qualifiers from pointer target type Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
This commit is contained in:
parent
906d25c5c8
commit
4fd6869be2
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user