signature change to mdb_open()

This commit is contained in:
brianb
2004-04-13 20:06:04 +00:00
parent 04452fbafe
commit 4953cee0af
26 changed files with 180 additions and 129 deletions

View File

@@ -152,12 +152,12 @@ wordexp_t words;
#endif
if (!(sql->mdb = mdb_open(db_namep))) {
if (!(sql->mdb = mdb_open(db_namep, MDB_NOFLAGS))) {
if (!strstr(db_namep, ".mdb")) {
char *tmpstr = (char *) malloc(strlen(db_namep)+5);
strcpy(tmpstr,db_namep);
strcat(tmpstr,".mdb");
if (!(sql->mdb = mdb_open(tmpstr))) {
if (!(sql->mdb = mdb_open(tmpstr, MDB_NOFLAGS))) {
fail++;
}
free(tmpstr);