aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2020-01-05 17:08:00 +0100
committerFabian Groffen <grobian@gentoo.org>2020-01-05 17:08:00 +0100
commit98b3632c7e28b4f7d5eebb7b7ffc255adabe81b7 (patch)
tree8da2cd79bac74f999422b4a6d56d92ae5ec7c0a0 /libq/tree.c
parentlibq/contents: drop expensive checks for newline and tabs (diff)
downloadportage-utils-98b3632c7e28b4f7d5eebb7b7ffc255adabe81b7.tar.gz
portage-utils-98b3632c7e28b4f7d5eebb7b7ffc255adabe81b7.tar.bz2
portage-utils-98b3632c7e28b4f7d5eebb7b7ffc255adabe81b7.zip
libq/tree: make some unused functions private (static)
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'libq/tree.c')
-rw-r--r--libq/tree.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libq/tree.c b/libq/tree.c
index bb3aa693..0b01f148 100644
--- a/libq/tree.c
+++ b/libq/tree.c
@@ -27,6 +27,8 @@
#include <xalloc.h>
static int tree_pkg_compar(const void *l, const void *r);
+static tree_pkg_ctx * tree_next_pkg_int(tree_cat_ctx *cat_ctx);
+static void tree_close_meta(tree_pkg_meta *cache);
static tree_ctx *
tree_open_int(const char *sroot, const char *tdir, bool quiet)
@@ -364,8 +366,6 @@ tree_pkg_compar(const void *l, const void *r)
}
static tree_pkg_ctx *
-tree_next_pkg_int(tree_cat_ctx *cat_ctx);
-static tree_pkg_ctx *
tree_next_pkg_int(tree_cat_ctx *cat_ctx)
{
tree_pkg_ctx *pkg_ctx = NULL;
@@ -926,7 +926,7 @@ tree_read_file_binpkg(tree_pkg_ctx *pkg_ctx)
return m;
}
-tree_pkg_meta *
+static tree_pkg_meta *
tree_pkg_read(tree_pkg_ctx *pkg_ctx)
{
tree_ctx *ctx = pkg_ctx->cat_ctx->ctx;
@@ -963,7 +963,7 @@ tree_pkg_read(tree_pkg_ctx *pkg_ctx)
return NULL;
}
-void
+static void
tree_close_meta(tree_pkg_meta *cache)
{
if (cache == NULL)