commit: e0639a1f8654092654520762b58a122506a1fa72 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> AuthorDate: Wed Jun 23 07:12:20 2021 +0000 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> CommitDate: Wed Jun 23 07:12:20 2021 +0000 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=e0639a1f
libq/tree: correct macro for tree_foreach_pkg drop the trailing ; to allow the call to be embedded Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> libq/tree.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libq/tree.h b/libq/tree.h index 0aa534d..052715b 100644 --- a/libq/tree.h +++ b/libq/tree.h @@ -154,9 +154,9 @@ void tree_close_pkg(tree_pkg_ctx *pkg_ctx); int tree_foreach_pkg(tree_ctx *ctx, tree_pkg_cb callback, void *priv, bool sort, const depend_atom *query); #define tree_foreach_pkg_fast(ctx, cb, priv, query) \ - tree_foreach_pkg(ctx, cb, priv, false, query); + tree_foreach_pkg(ctx, cb, priv, false, query) #define tree_foreach_pkg_sorted(ctx, cb, priv, query) \ - tree_foreach_pkg(ctx, cb, priv, true, query); + tree_foreach_pkg(ctx, cb, priv, true, query) set *tree_get_atoms(tree_ctx *ctx, bool fullcpv, set *satoms); depend_atom *tree_get_atom(tree_pkg_ctx *pkg_ctx, bool complete); tree_match_ctx *tree_match_atom(tree_ctx *t, const depend_atom *q, int flags);