From 75fb524b5702bca4f8467309f7d95f9937ec6683 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Wed, 19 Apr 2023 08:51:26 +0200 Subject: libfstree: get rid of dir_info_t The single boolean created_implicitly can be replaced with a general purpose flag field. The "children" pointer can then be hoisted directly into the data union of tree_node_t. Signed-off-by: David Oberhollenzer --- lib/common/src/writer/serialize_fstree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/common') diff --git a/lib/common/src/writer/serialize_fstree.c b/lib/common/src/writer/serialize_fstree.c index 9776874..7ecd850 100644 --- a/lib/common/src/writer/serialize_fstree.c +++ b/lib/common/src/writer/serialize_fstree.c @@ -70,7 +70,7 @@ static sqfs_inode_generic_t *write_dir_entries(const char *filename, if (ret) goto fail; - for (it = node->data.dir.children; it != NULL; it = it->next) { + for (it = node->data.children; it != NULL; it = it->next) { if (it->mode == FSTREE_MODE_HARD_LINK_RESOLVED) { tgt = it->data.target_node; } else { -- cgit v1.2.3