From 7f616711636c9f57ede2960ab72f14628abcaeda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= <timo.teras@iki.fi> Date: Fri, 3 Jan 2025 10:49:12 +0200 Subject: [PATCH] db: const correctness for apk_db_pkg_available --- src/apk_database.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apk_database.h b/src/apk_database.h index 0b661620..08c15780 100644 --- a/src/apk_database.h +++ b/src/apk_database.h @@ -284,7 +284,7 @@ static inline time_t apk_db_url_since(struct apk_database *db, time_t since) { bool apk_db_arch_compatible(struct apk_database *db, apk_blob_t *arch); -static inline bool apk_db_pkg_available(struct apk_database *db, struct apk_package *pkg) { +static inline bool apk_db_pkg_available(const struct apk_database *db, const struct apk_package *pkg) { return (pkg->repos & db->available_repos) ? true : false; } struct apk_package *apk_db_pkg_add(struct apk_database *db, struct apk_package_tmpl *tmpl); -- GitLab