From edbbab384a574f8c1ae95e7f6e222c2a1197a734 Mon Sep 17 00:00:00 2001 From: Dave Peticolas Date: Sun, 10 Feb 2002 09:57:39 +0000 Subject: [PATCH] fix warnings git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6706 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/gnome-search/dialog-search.c | 8 +++++--- src/report/report-gnome/window-report.c | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) 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);