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/tjfn.c | |
parent | cb2c49bbc5038799bb084914a7ba7cbe8356b165 (diff) | |
download | librpm-tizen-0ce3b2b0e153b4b6cd268df076c0844ee44c3caa.tar.gz librpm-tizen-0ce3b2b0e153b4b6cd268df076c0844ee44c3caa.tar.bz2 librpm-tizen-0ce3b2b0e153b4b6cd268df076c0844ee44c3caa.zip |
Use (xxx->open)() to work-around glibc's open() behaving having changed.
Diffstat (limited to 'rpmdb/tjfn.c')
-rw-r--r-- | rpmdb/tjfn.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rpmdb/tjfn.c b/rpmdb/tjfn.c index 2569bb598..e42e790dc 100644 --- a/rpmdb/tjfn.c +++ b/rpmdb/tjfn.c @@ -42,7 +42,7 @@ db_init(const char * home, DB_ENV ** dbenvp) dbenv->set_errpfx(dbenv, "tjfn"); flags = DB_CREATE | DB_INIT_MPOOL; - if ((ret = dbenv->open(dbenv, home, flags, 0)) != 0) + if ((ret = (dbenv->open)(dbenv, home, flags, 0)) != 0) goto exit; exit: @@ -71,12 +71,12 @@ db_open(const char * dbfn, DB_ENV * dbenv, DB ** dbp) } #if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1) - ret = db->open(db, NULL, dbfn, NULL, DB_BTREE, DB_CREATE, 0664); + ret = (db->open)(db, NULL, dbfn, NULL, DB_BTREE, DB_CREATE, 0664); #else - ret = db->open(db, dbfn, NULL, DB_BTREE, DB_CREATE, 0664); + ret = (db->open)(db, dbfn, NULL, DB_BTREE, DB_CREATE, 0664); #endif if (ret != 0) { - db->err(db, ret, "db->open(%s)", dbfn); + db->err(db, ret, "(db->open)(%s)", dbfn); goto err; } |