summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/be_local.c
diff options
context:
space:
mode:
authorRikard Falkeborn <rikard.falkeborn@gmail.com>2016-09-22 20:00:00 +0200
committerAllan McRae <allan@archlinux.org>2016-09-25 09:32:20 +0200
commit85171807c15fb5907d8337af2a50ab79392e1b8c (patch)
tree1459ab339a2fd46097b7405f7423f7d06356d3d8 /lib/libalpm/be_local.c
parent34f3f1e7a640488c4c32a3a825813afc1ad2ed68 (diff)
downloadpacman-85171807c15fb5907d8337af2a50ab79392e1b8c.tar.gz
pacman-85171807c15fb5907d8337af2a50ab79392e1b8c.tar.xz
Return boolean from db_populate
Since the number of packages is not used anywhere, just return a boolean to avoid the implicit cast from size_t to int in be_local.c. Use 0 as success to be consistent with db_validate. Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/be_local.c')
-rw-r--r--lib/libalpm/be_local.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/be_local.c b/lib/libalpm/be_local.c
index 3ef1975e..43c6bc93 100644
--- a/lib/libalpm/be_local.c
+++ b/lib/libalpm/be_local.c
@@ -612,7 +612,7 @@ static int local_db_populate(alpm_db_t *db)
_alpm_log(db->handle, ALPM_LOG_DEBUG, "added %zu packages to package cache for db '%s'\n",
count, db->treename);
- return count;
+ return 0;
}
/* Note: the return value must be freed by the caller */