summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-12-18 17:04:54 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-12-18 17:04:54 +0100
commit5dc3ab23d0552dc9460152f8a9089f25c8572d90 (patch)
treebbcdf05bd0fbe6c4bce8b6cea37aa3aeff03c02e /lib
parent6f96c4d2651ed59975354433267319d527490537 (diff)
Rename fstree "slink_target" to "target"
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib')
-rw-r--r--lib/common/serialize_fstree.c4
-rw-r--r--lib/fstree/mknode.c2
2 files changed, 3 insertions, 3 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;
diff --git a/lib/fstree/mknode.c b/lib/fstree/mknode.c
index 6274ba7..16cfa9c 100644
--- a/lib/fstree/mknode.c
+++ b/lib/fstree/mknode.c
@@ -60,7 +60,7 @@ tree_node_t *fstree_mknode(tree_node_t *parent, const char *name,
break;
case S_IFLNK:
n->mode = S_IFLNK | 0777;
- n->data.slink_target = ptr;
+ n->data.target = ptr;
break;
case S_IFBLK:
case S_IFCHR: