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 --- bin/gensquashfs/src/fstree_from_dir.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/gensquashfs/src/fstree_from_dir.c') diff --git a/bin/gensquashfs/src/fstree_from_dir.c b/bin/gensquashfs/src/fstree_from_dir.c index 6b27fad..27576ac 100644 --- a/bin/gensquashfs/src/fstree_from_dir.c +++ b/bin/gensquashfs/src/fstree_from_dir.c @@ -54,10 +54,10 @@ static void discard_node(tree_node_t *root, tree_node_t *n) { tree_node_t *it; - if (n == root->data.dir.children) { - root->data.dir.children = n->next; + if (n == root->data.children) { + root->data.children = n->next; } else { - it = root->data.dir.children; + it = root->data.children; while (it != NULL && it->next != n) it = it->next; -- cgit v1.2.3