This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=a90a4337dcb71e7b2ed45e5d1bd25cd55b4d529a commit a90a4337dcb71e7b2ed45e5d1bd25cd55b4d529a Author: Guillem Jover <[email protected]> AuthorDate: Wed Nov 10 01:58:01 2021 +0100 dpkg: Mark ignore_depends() pkg argument as const Warned-by: cppcheck Changelog: internal --- src/help.c | 2 +- src/main.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/help.c b/src/help.c index e075ff201..7762aca1a 100644 --- a/src/help.c +++ b/src/help.c @@ -152,7 +152,7 @@ void checkpath(void) { } bool -ignore_depends(struct pkginfo *pkg) +ignore_depends(const struct pkginfo *pkg) { struct pkg_list *id; for (id= ignoredependss; id; id= id->next) diff --git a/src/main.h b/src/main.h index e7fe820a7..1a7a443d4 100644 --- a/src/main.h +++ b/src/main.h @@ -275,7 +275,7 @@ bool skip_due_to_hold(struct pkginfo *pkg); struct stat; -bool ignore_depends(struct pkginfo *pkg); +bool ignore_depends(const struct pkginfo *pkg); bool force_breaks(struct deppossi *possi); bool force_depends(struct deppossi *possi); bool force_conflicts(struct deppossi *possi); -- Dpkg.Org's dpkg

