diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-04-16 22:39:08 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-04-17 19:50:51 +0200 |
commit | 4ba31cfa1521c94f4be73ea4c4c97d9ff475e89f (patch) | |
tree | 3a33cae1ccdfced406f3e500a9134539deb789c4 | |
parent | 48c268f2504b8461d8118e0b94aaf6b27ca1618e (diff) |
Internalize fstree_insert_sorted
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r-- | include/fstree.h | 2 | ||||
-rw-r--r-- | 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 <stdlib.h> #include <errno.h> -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++; } |