summaryrefslogtreecommitdiff
path: root/lib/fstree
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2022-07-05 15:50:09 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2022-07-08 19:17:35 +0200
commit62753ec36958c40f151fa223605aea5e6a50bd89 (patch)
tree9d07d8f920efca95d7d74b2d72bdc90c87e64fe0 /lib/fstree
parenta412425bca4bb90a7c1b35acac6b185158f3cd4f (diff)
Cleanup: Get rid of libfstree "internal.h" header
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/fstree')
-rw-r--r--lib/fstree/Makemodule.am3
-rw-r--r--lib/fstree/fstree.c4
-rw-r--r--lib/fstree/fstree_from_dir.c2
-rw-r--r--lib/fstree/internal.h15
-rw-r--r--lib/fstree/mknode.c3
-rw-r--r--lib/fstree/post_process.c3
6 files changed, 8 insertions, 22 deletions
diff --git a/lib/fstree/Makemodule.am b/lib/fstree/Makemodule.am
index a72b820..4388bde 100644
--- a/lib/fstree/Makemodule.am
+++ b/lib/fstree/Makemodule.am
@@ -3,8 +3,7 @@ libfstree_a_SOURCES += lib/fstree/hardlink.c
libfstree_a_SOURCES += lib/fstree/post_process.c lib/fstree/get_path.c
libfstree_a_SOURCES += lib/fstree/mknode.c lib/fstree/fstree_from_dir.c
libfstree_a_SOURCES += lib/fstree/add_by_path.c lib/fstree/get_by_path.c
-libfstree_a_SOURCES += include/fstree.h lib/fstree/internal.h
-libfstree_a_SOURCES += lib/fstree/sort_by_file.c
+libfstree_a_SOURCES += include/fstree.h lib/fstree/sort_by_file.c
libfstree_a_CFLAGS = $(AM_CFLAGS)
libfstree_a_CPPFLAGS = $(AM_CPPFLAGS)
diff --git a/lib/fstree/fstree.c b/lib/fstree/fstree.c
index 2ea5fa2..d44a8ae 100644
--- a/lib/fstree/fstree.c
+++ b/lib/fstree/fstree.c
@@ -4,7 +4,9 @@
*
* Copyright (C) 2019 David Oberhollenzer <goliath@infraroot.at>
*/
-#include "internal.h"
+#include "config.h"
+#include "fstree.h"
+
#include "util/util.h"
#include <string.h>
diff --git a/lib/fstree/fstree_from_dir.c b/lib/fstree/fstree_from_dir.c
index a11f383..01f331d 100644
--- a/lib/fstree/fstree_from_dir.c
+++ b/lib/fstree/fstree_from_dir.c
@@ -5,7 +5,7 @@
* Copyright (C) 2019 David Oberhollenzer <goliath@infraroot.at>
*/
#include "config.h"
-#include "internal.h"
+#include "fstree.h"
#include <dirent.h>
#include <stdlib.h>
diff --git a/lib/fstree/internal.h b/lib/fstree/internal.h
deleted file mode 100644
index b876e45..0000000
--- a/lib/fstree/internal.h
+++ /dev/null
@@ -1,15 +0,0 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
-/*
- * internal.h
- *
- * Copyright (C) 2019 David Oberhollenzer <goliath@infraroot.at>
- */
-#ifndef FSTREE_INTERNAL_H
-#define FSTREE_INTERNAL_H
-
-#include "config.h"
-#include "fstree.h"
-
-void fstree_insert_sorted(tree_node_t *root, tree_node_t *n);
-
-#endif /* FSTREE_INTERNAL_H */
diff --git a/lib/fstree/mknode.c b/lib/fstree/mknode.c
index 2b1f89d..2faf901 100644
--- a/lib/fstree/mknode.c
+++ b/lib/fstree/mknode.c
@@ -5,8 +5,7 @@
* Copyright (C) 2019 David Oberhollenzer <goliath@infraroot.at>
*/
#include "config.h"
-
-#include "internal.h"
+#include "fstree.h"
#include <string.h>
#include <stdlib.h>
diff --git a/lib/fstree/post_process.c b/lib/fstree/post_process.c
index 93a7664..088916b 100644
--- a/lib/fstree/post_process.c
+++ b/lib/fstree/post_process.c
@@ -4,7 +4,8 @@
*
* Copyright (C) 2019 David Oberhollenzer <goliath@infraroot.at>
*/
-#include "internal.h"
+#include "config.h"
+#include "fstree.h"
#include <stdlib.h>
#include <string.h>