Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/diskspace.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/diskspace.c
parentd307ed5eb9d6684911c55f661e2d58e0fd6e4ceb (diff)
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/diskspace.c')
-rw-r--r--lib/libalpm/diskspace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/diskspace.c b/lib/libalpm/diskspace.c
index 1e2fa143..ad80304b 100644
--- a/lib/libalpm/diskspace.c
+++ b/lib/libalpm/diskspace.c
@@ -211,7 +211,7 @@ static int calculate_installed_size(alpm_handle_t *handle,
/* approximate space requirements for db entries */
if(filename[0] == '.') {
- filename = alpm_option_get_dbpath(handle);
+ filename = handle->dbpath;
}
snprintf(path, PATH_MAX, "%s%s", handle->root, filename);