From 7a8532f8495e40ec68d7e723bb473c5c43d42b2d Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Wed, 27 Mar 2024 18:39:00 +0000 Subject: [PATCH] queue: remove no longer used root package reference when walking dependency graphs --- libpkgconf/queue.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libpkgconf/queue.c b/libpkgconf/queue.c index 1f35575..c99b343 100644 --- a/libpkgconf/queue.c +++ b/libpkgconf/queue.c @@ -131,7 +131,6 @@ pkgconf_queue_collect_dependencies_main(pkgconf_client_t *client, static inline unsigned int pkgconf_queue_collect_dependencies_walk(pkgconf_client_t *client, - pkgconf_pkg_t *parent, pkgconf_list_t *deplist, void *data, int depth) @@ -197,7 +196,7 @@ pkgconf_queue_collect_dependencies_main(pkgconf_client_t *client, /* XXX: ugly */ const unsigned int saved_flags = client->flags; client->flags |= PKGCONF_PKG_PKGF_ITER_PKG_IS_PRIVATE; - eflags = pkgconf_queue_collect_dependencies_walk(client, root, &root->requires_private, data, maxdepth); + eflags = pkgconf_queue_collect_dependencies_walk(client, &root->requires_private, data, maxdepth); client->flags = saved_flags; if (eflags != PKGCONF_PKG_ERRF_OK) return eflags; @@ -205,7 +204,7 @@ pkgconf_queue_collect_dependencies_main(pkgconf_client_t *client, PKGCONF_TRACE(client, "%s: collecting public dependencies, level %d", root->id, maxdepth); - eflags = pkgconf_queue_collect_dependencies_walk(client, root, &root->required, data, maxdepth); + eflags = pkgconf_queue_collect_dependencies_walk(client, &root->required, data, maxdepth); if (eflags != PKGCONF_PKG_ERRF_OK) return eflags;