From 58c6b88a3c8a58f3afa6d41db56c032409480b59 Mon Sep 17 00:00:00 2001 From: Dave Peticolas Date: Thu, 21 Dec 2000 01:25:52 +0000 Subject: [PATCH] Fix db_open args. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3331 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/gnome/window-help.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/gnome/window-help.c b/src/gnome/window-help.c index 350f9f0971..3fe445c219 100644 --- a/src/gnome/window-help.c +++ b/src/gnome/window-help.c @@ -41,6 +41,7 @@ #include "window-help.h" #include "gnc-html.h" #include "gnc-html-history.h" +#include "gnc-engine-util.h" #include "File.h" struct _gnc_help_window { @@ -63,6 +64,9 @@ struct _gnc_help_window { static GList * open_help_windows = NULL; +/* This static indicates the debugging module that this .o belongs to. */ +static short module = MOD_GUI; + /******************************************************************** * gnc_help_window_check_urltype * is it OK to show a certain URLType in this window? @@ -473,10 +477,10 @@ gnc_help_window_new() { indexfile = gncFindFile("help-search-index.db"); if((err = db_open(indexfile, - DB_UNKNOWN, 0, 0666, + DB_UNKNOWN, DB_RDONLY, 0644, NULL, NULL, &(help->index_db))) != 0) { - printf("Failed to open help index DB '%s' : %s\n", - indexfile, strerror(err)); + PERR("Failed to open help index DB '%s' : %s\n", + indexfile, strerror(err)); help->index_db = NULL; } g_free(indexfile);