summaryrefslogtreecommitdiff
path: root/lib/libalpm
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2006-12-22 04:47:36 +0000
committerAaron Griffin <aaron@archlinux.org>2006-12-22 04:47:36 +0000
commit2a8980866709c0e85f23e5eeab6188c9376fe451 (patch)
tree662cfee69ec2b76f061e850475d0b8a29b1d7514 /lib/libalpm
parent42a0dddc95665b71ead67402020eb6161ae00113 (diff)
downloadpacman-2a8980866709c0e85f23e5eeab6188c9376fe451.tar.xz
* Unused variable 'path'
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/add.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c
index 394fdd30..5fda291c 100644
--- a/lib/libalpm/add.c
+++ b/lib/libalpm/add.c
@@ -623,7 +623,7 @@ int _alpm_add_commit(pmtrans_t *trans, pmdb_t *db)
alpm_logaction(_("warning: %s saved as %s"), expath, newpath);
}
}
- } else if(md5_orig || sha1_orig) {
+ } else if(md5_pkg || sha1_pkg) {
/* PM_UPGRADE */
int installnew = 0;
@@ -701,7 +701,6 @@ int _alpm_add_commit(pmtrans_t *trans, pmdb_t *db)
/* calculate an md5 or sha1 hash if this is in info->backup */
for(lp = info->backup; lp; lp = lp->next) {
char *fn, *md5, *sha1;
- char path[PATH_MAX];
char *file = lp->data;
if(!file) continue;