From 716683c4a522723017b4df1a741ed6ea502a5da4 Mon Sep 17 00:00:00 2001 From: skimo Date: Fri, 21 Jul 2000 17:33:00 +0000 Subject: [PATCH] use db env --- common/main.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/common/main.c b/common/main.c index ec97b44e..0ffaa88a 100644 --- a/common/main.c +++ b/common/main.c @@ -18,7 +18,7 @@ static const char copyright[] = #endif /* not lint */ #ifndef lint -static const char sccsid[] = "$Id: main.c,v 10.56 2000/07/14 14:29:16 skimo Exp $ (Berkeley) $Date: 2000/07/14 14:29:16 $"; +static const char sccsid[] = "$Id: main.c,v 10.57 2000/07/21 17:33:00 skimo Exp $ (Berkeley) $Date: 2000/07/21 17:33:00 $"; #endif /* not lint */ #include @@ -227,9 +227,10 @@ editor(wp, argc, argv) v_estr(gp->progname, 0, "Unable to create DB environment."); goto err; } + /* gp->env->set_errfile(gp->env, stderr); - gp->env->open(gp->env, NULL, 0, 0); - gp->env = NULL; + */ + gp->env->open(gp->env, NULL, DB_CREATE | DB_INIT_MPOOL, 0); /* * Build and initialize the first/current screen. This is a bit -- 2.11.4.GIT