mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-27 04:12:29 +01:00
25 lines
667 B
Diff
25 lines
667 B
Diff
--- a/lib/mydb_db3.c
|
|
+++ b/lib/mydb_db3.c
|
|
@@ -190,21 +190,10 @@ static int myinit(const char *dbdir, int
|
|
|
|
static int init(const char *dbdir, int myflags)
|
|
{
|
|
- int maj, min, patch;
|
|
- char *vstr;
|
|
int r;
|
|
|
|
if (dbinit++) return 0;
|
|
|
|
- vstr = db_version(&maj, &min, &patch);
|
|
- if (maj != DB_VERSION_MAJOR || min != DB_VERSION_MINOR ||
|
|
- DB_VERSION_PATCH > patch) {
|
|
- log_fatal("incorrect version of Berkeley db: "
|
|
- "compiled against %d.%d.%d, linked against %d.%d.%d",
|
|
- DB_VERSION_MAJOR, DB_VERSION_MINOR, DB_VERSION_PATCH,
|
|
- maj, min, patch);
|
|
- }
|
|
-
|
|
if (!(r = myinit(dbdir, myflags)))
|
|
return(0);
|
|
|