diff --git a/lib/search.h b/lib/search.h index 1c246c354..6e79609bc 100644 --- a/lib/search.h +++ b/lib/search.h @@ -168,7 +168,7 @@ int mc_search_getstart_result_by_num (mc_search_t *, int); int mc_search_getend_result_by_num (mc_search_t *, int); /* *INDENT-OFF* */ -void mc_search_set_error (mc_search_t * mc_search, mc_search_error_t code, const gchar * format, ...) +void mc_search_set_error (mc_search_t * lc_mc_search, mc_search_error_t code, const gchar * format, ...) G_GNUC_PRINTF (3, 4); /* *INDENT-ON* */ diff --git a/lib/search/search.c b/lib/search/search.c index af33b7392..7190fa9d1 100644 --- a/lib/search/search.c +++ b/lib/search/search.c @@ -494,18 +494,18 @@ mc_search_getend_result_by_num (mc_search_t * lc_mc_search, int lc_index) */ void -mc_search_set_error (mc_search_t * mc_search, mc_search_error_t code, const gchar * format, ...) +mc_search_set_error (mc_search_t * lc_mc_search, mc_search_error_t code, const gchar * format, ...) { - mc_search->error = code; + lc_mc_search->error = code; - MC_PTR_FREE (mc_search->error_str); + MC_PTR_FREE (lc_mc_search->error_str); if (format != NULL) { va_list args; va_start (args, format); - mc_search->error_str = g_strdup_vprintf (format, args); + lc_mc_search->error_str = g_strdup_vprintf (format, args); va_end (args); } }