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:
Mikhail S. Pobolovets 2009-05-08 15:23:38 +03:00 committed by Slava Zanko
parent 906d25c5c8
commit 4fd6869be2
3 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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);