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=913824a3f3be5ed139a59b637925b1a268de05c5

commit 913824a3f3be5ed139a59b637925b1a268de05c5
Author: Guillem Jover <[email protected]>
AuthorDate: Wed Nov 10 01:57:18 2021 +0100

    libdpkg: Mark treewalk_open() func argument as const
    
    Warned-by: cppcheck
---
 lib/dpkg/treewalk.c | 2 +-
 lib/dpkg/treewalk.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/dpkg/treewalk.c b/lib/dpkg/treewalk.c
index 00ce66cc5..ca22885d1 100644
--- a/lib/dpkg/treewalk.c
+++ b/lib/dpkg/treewalk.c
@@ -363,7 +363,7 @@ treeroot_visit_node(struct treeroot *tree, struct treenode 
*node)
  */
 struct treeroot *
 treewalk_open(const char *rootdir, enum treewalk_options options,
-              struct treewalk_funcs *func)
+              const struct treewalk_funcs *func)
 {
        struct treeroot *tree;
        struct treenode *root;
diff --git a/lib/dpkg/treewalk.h b/lib/dpkg/treewalk.h
index 67a6129cc..1e8202320 100644
--- a/lib/dpkg/treewalk.h
+++ b/lib/dpkg/treewalk.h
@@ -56,7 +56,7 @@ struct treewalk_funcs {
 
 struct treeroot *
 treewalk_open(const char *rootdir, enum treewalk_options options,
-              struct treewalk_funcs *funcs);
+              const struct treewalk_funcs *funcs);
 struct treenode *
 treewalk_node(struct treeroot *tree);
 struct treenode *

-- 
Dpkg.Org's dpkg

Reply via email to