summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-02-05 09:23:28 +0000
committerAurelien Foret <aurelien@archlinux.org>2006-02-05 09:23:28 +0000
commit35e23b9554b6438bd42a873e7f47ae16116e3f06 (patch)
treee790f00c0887cf32392d931e3da9df5af513cd70 /lib
parentad3baca0f4bdc459b525a0b6000105dc6a9969fb (diff)
downloadpacman-35e23b9554b6438bd42a873e7f47ae16116e3f06.tar.xz
code cleanup
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/remove.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/remove.c b/lib/libalpm/remove.c
index 898969ee..30f160de 100644
--- a/lib/libalpm/remove.c
+++ b/lib/libalpm/remove.c
@@ -168,14 +168,14 @@ int remove_commit(pmtrans_t *trans, pmdb_t *db)
for(lp = _alpm_list_last(info->files); lp; lp = lp->prev) {
int nb = 0;
char *file = lp->data;
- char *md5 = _alpm_needbackup(lp->data, info->backup);
+ char *md5 = _alpm_needbackup(file, info->backup);
if(md5) {
nb = 1;
free(md5);
}
if(!nb && trans->type == PM_TRANS_TYPE_UPGRADE) {
/* check noupgrade */
- if(pm_list_is_strin(lp->data, handle->noupgrade)) {
+ if(pm_list_is_strin(file, handle->noupgrade)) {
nb = 1;
}
}