teknoraver / rpms / rpm

Forked from rpms/rpm 4 months ago
Clone

Blame rpm-4.4.2.1-rpm-glibc.patch

Panu Matilainen edc6f9
diff -up rpm-4.4.2.1/rpmdb/db3.c.rpm-glibc rpm-4.4.2.1/rpmdb/db3.c
Panu Matilainen edc6f9
--- rpm-4.4.2.1/rpmdb/db3.c.rpm-glibc	2007-08-08 13:52:09.000000000 +0300
Panu Matilainen edc6f9
+++ rpm-4.4.2.1/rpmdb/db3.c	2007-08-08 13:53:35.000000000 +0300
Panu Matilainen edc6f9
@@ -430,9 +430,9 @@ static int db_init(dbiIndex dbi, const c
Panu Matilainen edc6f9
   }
Panu Matilainen edc6f9
 
Panu Matilainen edc6f9
 #if (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR != 0) || (DB_VERSION_MAJOR == 4)
Panu Matilainen edc6f9
-    rc = dbenv->open(dbenv, dbhome, eflags, dbi->dbi_perms);
Panu Matilainen edc6f9
+    rc = (dbenv->open)(dbenv, dbhome, eflags, dbi->dbi_perms);
Panu Matilainen edc6f9
 #else
Panu Matilainen edc6f9
-    rc = dbenv->open(dbenv, dbhome, NULL, eflags, dbi->dbi_perms);
Panu Matilainen edc6f9
+    rc = (dbenv->open)(dbenv, dbhome, NULL, eflags, dbi->dbi_perms);
Panu Matilainen edc6f9
 #endif
Panu Matilainen edc6f9
     rc = cvtdberr(dbi, "dbenv->open", rc, _debug);
Panu Matilainen edc6f9
     if (rc)
Panu Matilainen edc6f9
@@ -867,7 +867,7 @@ static int db3close(/*@only@*/ dbiIndex 
Panu Matilainen edc6f9
 	    if (rc) goto exit;
Panu Matilainen edc6f9
 	}
Panu Matilainen edc6f9
 	    
Panu Matilainen edc6f9
-	rc = dbenv->open(dbenv, dbhome,
Panu Matilainen edc6f9
+	rc = (dbenv->open)(dbenv, dbhome,
Panu Matilainen edc6f9
             DB_CREATE | DB_INIT_MPOOL | DB_PRIVATE | DB_USE_ENVIRON, 0);
Panu Matilainen edc6f9
 	rc = cvtdberr(dbi, "dbenv->open", rc, _debug);
Panu Matilainen edc6f9
 	if (rc) goto exit;
Panu Matilainen edc6f9
@@ -1303,10 +1303,10 @@ static int db3open(rpmdb rpmdb, rpmTag r
Panu Matilainen edc6f9
 #endif
Panu Matilainen edc6f9
 
Panu Matilainen edc6f9
 #if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1)
Panu Matilainen edc6f9
-		rc = db->open(db, txnid, dbpath, dbsubfile,
Panu Matilainen edc6f9
+		rc = (db->open)(db, txnid, dbpath, dbsubfile,
Panu Matilainen edc6f9
 		    dbi->dbi_type, oflags, dbi->dbi_perms);
Panu Matilainen edc6f9
 #else
Panu Matilainen edc6f9
-		rc = db->open(db, dbpath, dbsubfile,
Panu Matilainen edc6f9
+		rc = (db->open)(db, dbpath, dbsubfile,
Panu Matilainen edc6f9
 		    dbi->dbi_type, oflags, dbi->dbi_perms);
Panu Matilainen edc6f9
 #endif
Panu Matilainen edc6f9