diff --git a/src/gnome-search/dialog-search.c b/src/gnome-search/dialog-search.c index 3ae85a3be6..83f9b7498b 100644 --- a/src/gnome-search/dialog-search.c +++ b/src/gnome-search/dialog-search.c @@ -262,8 +262,10 @@ gnc_search_dialog_close_cb (GnomeDialog *dialog, GNCSearchWindow *sw) } static void -close_handler (GNCSearchWindow *sw) +close_handler (gpointer data) { + GNCSearchWindow * sw = data; + gnome_dialog_close (GNOME_DIALOG (sw->dialog)); } @@ -380,8 +382,8 @@ make_param (GNCIdTypeConst type, const char *title, const char *path1, gnc_search_param_set_title (param, title); if (path2) - l = g_slist_prepend (l, path2); - l = g_slist_prepend (l, path1); + l = g_slist_prepend (l, (gpointer) path2); + l = g_slist_prepend (l, (gpointer) path1); gnc_search_param_set_param_path (param, type, l); diff --git a/src/report/report-gnome/window-report.c b/src/report/report-gnome/window-report.c index dfdc02ce05..3119c83529 100644 --- a/src/report/report-gnome/window-report.c +++ b/src/report/report-gnome/window-report.c @@ -473,7 +473,7 @@ gnc_report_window_export_button_cb(GtkWidget * w, gpointer data) SCM res; choice = gh_cdr (choice); - file_scm = gh_str02scm (filepath); + file_scm = gh_str02scm ((char *) filepath); res = gh_call3 (export_thunk, report->cur_report, choice, file_scm);