index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2016-09-22 20:00:01 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2016-09-25 17:33:09 +1000 |
commit | 6a5156eedc378057eb2ced2c6e6191c50286b1e1 (patch) | |
tree | 547640356d476765d141a3d3308e601901d0e1f1 /lib | |
parent | 85171807c15fb5907d8337af2a50ab79392e1b8c (diff) |
-rw-r--r-- | lib/libalpm/be_sync.c | 8 |
diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c index 3591e3f8..a8362778 100644 --- a/lib/libalpm/be_sync.c +++ b/lib/libalpm/be_sync.c @@ -462,8 +462,8 @@ static size_t estimate_package_count(struct stat *st, struct archive *archive) static int sync_db_populate(alpm_db_t *db) { const char *dbpath; - size_t est_count; - int count, fd; + size_t est_count, count; + int fd; int ret = 0; struct stat buf; struct archive *archive; @@ -520,10 +520,10 @@ static int sync_db_populate(alpm_db_t *db) count = alpm_list_count(db->pkgcache->list); if(count > 0) { db->pkgcache->list = alpm_list_msort(db->pkgcache->list, - (size_t)count, _alpm_pkg_cmp); + count, _alpm_pkg_cmp); } _alpm_log(db->handle, ALPM_LOG_DEBUG, - "added %d packages to package cache for db '%s'\n", + "added %zu packages to package cache for db '%s'\n", count, db->treename); cleanup: |