From 4ba31cfa1521c94f4be73ea4c4c97d9ff475e89f Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 16 Apr 2023 22:39:08 +0200 Subject: Internalize fstree_insert_sorted Signed-off-by: David Oberhollenzer --- include/fstree.h | 2 -- lib/fstree/src/mknode.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/fstree.h b/include/fstree.h index ef6dd4b..dfb1314 100644 --- a/include/fstree.h +++ b/include/fstree.h @@ -211,6 +211,4 @@ tree_node_t *fstree_add_hard_link(fstree_t *fs, const char *path, */ int fstree_resolve_hard_links(fstree_t *fs); -void fstree_insert_sorted(tree_node_t *root, tree_node_t *n); - #endif /* FSTREE_H */ diff --git a/lib/fstree/src/mknode.c b/lib/fstree/src/mknode.c index 2faf901..8f1d212 100644 --- a/lib/fstree/src/mknode.c +++ b/lib/fstree/src/mknode.c @@ -11,7 +11,7 @@ #include #include -void fstree_insert_sorted(tree_node_t *root, tree_node_t *n) +static void insert_sorted(tree_node_t *root, tree_node_t *n) { tree_node_t *it = root->data.dir.children, *prev = NULL; @@ -93,7 +93,7 @@ tree_node_t *fstree_mknode(tree_node_t *parent, const char *name, return NULL; } - fstree_insert_sorted(parent, n); + insert_sorted(parent, n); parent->link_count++; } -- cgit v1.2.3