summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-03-05 17:11:31 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-03-06 22:08:36 +0100
commit378db7c6ab1336ce99136118a9b66901630ffc85 (patch)
tree10f0551ea26a2b95f741ce3713eb94e10ae8fc22 /lib
parentb950412ca3a91aa37349cf51ebe98cc84767d448 (diff)
Cleanup: replace the void-ptr with an inode-ptr in the file tree node
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib')
-rw-r--r--lib/common/writer/serialize_fstree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/common/writer/serialize_fstree.c b/lib/common/writer/serialize_fstree.c
index c69f0ea..b15f30d 100644
--- a/lib/common/writer/serialize_fstree.c
+++ b/lib/common/writer/serialize_fstree.c
@@ -120,8 +120,8 @@ static int serialize_tree_node(const char *filename, sqfs_writer_t *wr,
inode = write_dir_entries(filename, wr->dirwr, n);
ret = SQFS_ERROR_INTERNAL;
} else if (S_ISREG(n->mode)) {
- inode = n->data.file.user_ptr;
- n->data.file.user_ptr = NULL;
+ inode = n->data.file.inode;
+ n->data.file.inode = NULL;
ret = SQFS_ERROR_INTERNAL;
if (inode->base.type == SQFS_INODE_FILE && n->link_count > 1) {