summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/sync.c
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2007-02-07 06:57:28 +0100
committerAaron Griffin <aaron@archlinux.org>2007-02-07 06:57:28 +0100
commit6c5066471c63adce5d413a5511951d89f6fd10be (patch)
tree95fa9a1701d89a66920009ebf6eb2772babdd5ab /lib/libalpm/sync.c
parentad224b2703cee5271cc419a32d8400ed1ad45554 (diff)
downloadpacman-6c5066471c63adce5d413a5511951d89f6fd10be.tar.gz
pacman-6c5066471c63adce5d413a5511951d89f6fd10be.tar.xz
Cleanup and more debug info for alpm_pkg_compare_versions
Diffstat (limited to 'lib/libalpm/sync.c')
-rw-r--r--lib/libalpm/sync.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
index 3dcde337..6719f476 100644
--- a/lib/libalpm/sync.c
+++ b/lib/libalpm/sync.c
@@ -199,7 +199,6 @@ int _alpm_sync_sysupgrade(pmtrans_t *trans, pmdb_t *db_local, alpm_list_t *dbs_s
/* match installed packages with the sync dbs and compare versions */
_alpm_log(PM_LOG_DEBUG, _("checking for package upgrades"));
for(i = _alpm_db_get_pkgcache(db_local, INFRQ_NONE); i; i = i->next) {
- int cmp;
int replace=0;
pmpkg_t *local = i->data;
pmpkg_t *spkg = NULL;
@@ -262,7 +261,7 @@ int _alpm_sync_addtarget(pmtrans_t *trans, pmdb_t *db_local, alpm_list_t *dbs_sy
pmpkg_t *local;
pmpkg_t *spkg = NULL;
pmsyncpkg_t *sync;
- int cmp, repo_found = 0;
+ int repo_found = 0;
ALPM_LOG_FUNC;