summaryrefslogtreecommitdiff
path: root/lib/libalpm/db.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-08-19 19:12:21 -0500
committerDan McGee <dan@archlinux.org>2011-08-19 19:12:21 -0500
commitd9e5dab6aceeb4d32cfa52d5500f0d22cabb487b (patch)
tree031845462cc7aefe45c86a03aae95bb62e44fdeb /lib/libalpm/db.c
parentd307ed5eb9d6684911c55f661e2d58e0fd6e4ceb (diff)
downloadpacman-d9e5dab6aceeb4d32cfa52d5500f0d22cabb487b.tar.xz
Remove alpm_option_get_* usage from backend
These are all available directly on the handle without indirection. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/db.c')
-rw-r--r--lib/libalpm/db.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c
index 33282b87..4b23509a 100644
--- a/lib/libalpm/db.c
+++ b/lib/libalpm/db.c
@@ -224,7 +224,7 @@ alpm_siglevel_t SYMEXPORT alpm_db_get_siglevel(alpm_db_t *db)
{
ASSERT(db != NULL, return -1);
if(db->siglevel & ALPM_SIG_USE_DEFAULT) {
- return alpm_option_get_default_siglevel(db->handle);
+ return db->handle->siglevel;
} else {
return db->siglevel;
}
@@ -357,7 +357,7 @@ const char *_alpm_db_path(alpm_db_t *db)
const char *dbpath;
size_t pathsize;
- dbpath = alpm_option_get_dbpath(db->handle);
+ dbpath = db->handle->dbpath;
if(!dbpath) {
_alpm_log(db->handle, ALPM_LOG_ERROR, _("database path is undefined\n"));
RET_ERR(db->handle, ALPM_ERR_DB_OPEN, NULL);