Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
apk-tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sertonix
apk-tools
Commits
7f616711
Commit
7f616711
authored
2 months ago
by
Timo Teräs
Browse files
Options
Downloads
Patches
Plain Diff
db: const correctness for apk_db_pkg_available
parent
35a57547
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/apk_database.h
+1
-1
1 addition, 1 deletion
src/apk_database.h
with
1 addition
and
1 deletion
src/apk_database.h
+
1
−
1
View file @
7f616711
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment