Fix db_open args.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3331 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas 2000-12-21 01:25:52 +00:00
parent dcab989561
commit 58c6b88a3c

View File

@ -41,6 +41,7 @@
#include "window-help.h" #include "window-help.h"
#include "gnc-html.h" #include "gnc-html.h"
#include "gnc-html-history.h" #include "gnc-html-history.h"
#include "gnc-engine-util.h"
#include "File.h" #include "File.h"
struct _gnc_help_window { struct _gnc_help_window {
@ -63,6 +64,9 @@ struct _gnc_help_window {
static GList * open_help_windows = NULL; 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 * gnc_help_window_check_urltype
* is it OK to show a certain URLType in this window? * 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"); indexfile = gncFindFile("help-search-index.db");
if((err = db_open(indexfile, if((err = db_open(indexfile,
DB_UNKNOWN, 0, 0666, DB_UNKNOWN, DB_RDONLY, 0644,
NULL, NULL, &(help->index_db))) != 0) { NULL, NULL, &(help->index_db))) != 0) {
printf("Failed to open help index DB '%s' : %s\n", PERR("Failed to open help index DB '%s' : %s\n",
indexfile, strerror(err)); indexfile, strerror(err));
help->index_db = NULL; help->index_db = NULL;
} }
g_free(indexfile); g_free(indexfile);