summaryrefslogtreecommitdiffstats
path: root/src/pacman/package.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pacman/package.c')
-rw-r--r--src/pacman/package.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pacman/package.c b/src/pacman/package.c
index af60421a..0a069055 100644
--- a/src/pacman/package.c
+++ b/src/pacman/package.c
@@ -88,8 +88,10 @@ void dump_pkg_full(PM_PKG *pkg, int level)
if(level > 1) {
PM_LIST *i;
+ long lroot;
char *root;
- alpm_get_option(PM_OPT_ROOT, (long *)&root);
+ alpm_get_option(PM_OPT_ROOT, &lroot);
+ root = (void *)&root;
fprintf(stdout, "\n");
for(i = alpm_list_first(alpm_pkg_getinfo(pkg, PM_PKG_BACKUP)); i; i = alpm_list_next(i)) {
struct stat buf;