diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-12-18 17:04:54 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-12-18 17:04:54 +0100 |
commit | 5dc3ab23d0552dc9460152f8a9089f25c8572d90 (patch) | |
tree | bbcdf05bd0fbe6c4bce8b6cea37aa3aeff03c02e /lib/common/serialize_fstree.c | |
parent | 6f96c4d2651ed59975354433267319d527490537 (diff) |
Rename fstree "slink_target" to "target"
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/common/serialize_fstree.c')
-rw-r--r-- | lib/common/serialize_fstree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/common/serialize_fstree.c b/lib/common/serialize_fstree.c index 0f34d7d..a64d90f 100644 --- a/lib/common/serialize_fstree.c +++ b/lib/common/serialize_fstree.c @@ -17,7 +17,7 @@ static sqfs_inode_generic_t *tree_node_to_inode(tree_node_t *node) size_t extra = 0; if (S_ISLNK(node->mode)) - extra = strlen(node->data.slink_target); + extra = strlen(node->data.target); inode = calloc(1, sizeof(*inode) + extra); if (inode == NULL) { @@ -39,7 +39,7 @@ static sqfs_inode_generic_t *tree_node_to_inode(tree_node_t *node) inode->data.slink.nlink = 1; inode->data.slink.target_size = extra; inode->slink_target = (char *)inode->extra; - memcpy(inode->extra, node->data.slink_target, extra); + memcpy(inode->extra, node->data.target, extra); break; case S_IFBLK: inode->base.type = SQFS_INODE_BDEV; |