summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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: