summaryrefslogtreecommitdiff
path: root/db/db_stat
diff options
context:
space:
mode:
authorRalf Corsépius <corsepiu@fedoraproject.org>2007-08-23 10:09:13 +0200
committerRalf Corsépius <corsepiu@fedoraproject.org>2007-08-23 10:09:13 +0200
commita8997f47160741d2c8be553748791bc83a7b5db1 (patch)
tree1f248149bb4dd63631809a5b998af1a746ef1423 /db/db_stat
parent2a98ab385d543741a41642ebea5a7d3f763c23d1 (diff)
downloadlibrpm-tizen-a8997f47160741d2c8be553748791bc83a7b5db1.tar.gz
librpm-tizen-a8997f47160741d2c8be553748791bc83a7b5db1.tar.bz2
librpm-tizen-a8997f47160741d2c8be553748791bc83a7b5db1.zip
Use (xxx->open)() to work-around glibc's open() behaving having changed.
Diffstat (limited to 'db/db_stat')
-rw-r--r--db/db_stat/db_stat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/db/db_stat/db_stat.c b/db/db_stat/db_stat.c
index 2ae62f683..417838b5e 100644
--- a/db/db_stat/db_stat.c
+++ b/db/db_stat/db_stat.c
@@ -282,9 +282,9 @@ retry: if ((ret = db_env_create(&dbenv, 0)) != 0) {
* hash databases for which we don't know the hash function).
*/
dbenv->set_errfile(dbenv, NULL);
- ret = dbp->open(dbp, NULL, db, subdb, DB_UNKNOWN, 0, 0);
+ ret = (dbp->open)(dbp, NULL, db, subdb, DB_UNKNOWN, 0, 0);
dbenv->set_errfile(dbenv, stderr);
- if (ret != 0 && (ret = dbp->open(
+ if (ret != 0 && (ret = (dbp->open)(
dbp, NULL, db, subdb, DB_UNKNOWN, DB_RDONLY, 0)) != 0) {
dbenv->err(dbenv, ret, "DB->open: %s", db);
goto err;
@@ -392,7 +392,7 @@ db_init(dbenv, home, ttype, cache, is_private)
* error, I think.
*/
*is_private = 0;
- if ((ret = dbenv->open(dbenv, home, DB_USE_ENVIRON, 0)) == 0)
+ if ((ret = (dbenv->open)(dbenv, home, DB_USE_ENVIRON, 0)) == 0)
return (0);
if (ret == DB_VERSION_MISMATCH)
goto err;
@@ -422,7 +422,7 @@ db_init(dbenv, home, ttype, cache, is_private)
oflags |= DB_INIT_MPOOL;
if (ttype == T_LOG)
oflags |= DB_INIT_LOG;
- if ((ret = dbenv->open(dbenv, home, oflags, 0)) == 0)
+ if ((ret = (dbenv->open)(dbenv, home, oflags, 0)) == 0)
return (0);
/* An environment is required. */