diff options
author | Ralf Corsépius <corsepiu@fedoraproject.org> | 2007-08-22 15:17:23 +0200 |
---|---|---|
committer | Ralf Corsépius <corsepiu@fedoraproject.org> | 2007-08-22 15:17:23 +0200 |
commit | 0ce3b2b0e153b4b6cd268df076c0844ee44c3caa (patch) | |
tree | 3eb56ad4917dfa32f6c5556d2afaac3fd5c2bbf6 /rpmdb/db3.c | |
parent | cb2c49bbc5038799bb084914a7ba7cbe8356b165 (diff) | |
download | rpm-0ce3b2b0e153b4b6cd268df076c0844ee44c3caa.tar.gz rpm-0ce3b2b0e153b4b6cd268df076c0844ee44c3caa.tar.bz2 rpm-0ce3b2b0e153b4b6cd268df076c0844ee44c3caa.zip |
Use (xxx->open)() to work-around glibc's open() behaving having changed.
Diffstat (limited to 'rpmdb/db3.c')
-rw-r--r-- | rpmdb/db3.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rpmdb/db3.c b/rpmdb/db3.c index 2efcbcfec..4ca257a69 100644 --- a/rpmdb/db3.c +++ b/rpmdb/db3.c @@ -430,9 +430,9 @@ static int db_init(dbiIndex dbi, const char * dbhome, } #if (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR != 0) || (DB_VERSION_MAJOR == 4) - rc = dbenv->open(dbenv, dbhome, eflags, dbi->dbi_perms); + rc = (dbenv->open)(dbenv, dbhome, eflags, dbi->dbi_perms); #else - rc = dbenv->open(dbenv, dbhome, NULL, eflags, dbi->dbi_perms); + rc = (dbenv->open)(dbenv, dbhome, NULL, eflags, dbi->dbi_perms); #endif rc = cvtdberr(dbi, "dbenv->open", rc, _debug); if (rc) @@ -867,7 +867,7 @@ static int db3close(/*@only@*/ dbiIndex dbi, /*@unused@*/ unsigned int flags) if (rc) goto exit; } - rc = dbenv->open(dbenv, dbhome, + rc = (dbenv->open)(dbenv, dbhome, DB_CREATE | DB_INIT_MPOOL | DB_PRIVATE | DB_USE_ENVIRON, 0); rc = cvtdberr(dbi, "dbenv->open", rc, _debug); if (rc) goto exit; @@ -1303,10 +1303,10 @@ static int db3open(rpmdb rpmdb, rpmTag rpmtag, dbiIndex * dbip) #endif #if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1) - rc = db->open(db, txnid, dbpath, dbsubfile, + rc = (db->open)(db, txnid, dbpath, dbsubfile, dbi->dbi_type, oflags, dbi->dbi_perms); #else - rc = db->open(db, dbpath, dbsubfile, + rc = (db->open)(db, dbpath, dbsubfile, dbi->dbi_type, oflags, dbi->dbi_perms); #endif |