summaryrefslogtreecommitdiff
path: root/lib/sqfs/inode.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-02-23 15:45:34 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-02-23 15:45:34 +0100
commitc9429aeece3b8642de637f7a21e68046bd690658 (patch)
tree50bac7c70a89010865a719b89bd44c63a78f1b26 /lib/sqfs/inode.c
parentc2a093c9e9fb4889a11982797d75b8608c26da8f (diff)
Remove the sqfs_inode_copy function
With unified payload size counters, copying an inode is now trivial. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/inode.c')
-rw-r--r--lib/sqfs/inode.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/sqfs/inode.c b/lib/sqfs/inode.c
index bda244b..02d23e2 100644
--- a/lib/sqfs/inode.c
+++ b/lib/sqfs/inode.c
@@ -33,20 +33,6 @@ static int inverse_type[] = {
[SQFS_INODE_EXT_SOCKET] = SQFS_INODE_SOCKET,
};
-int sqfs_inode_copy(const sqfs_inode_generic_t *src,
- sqfs_inode_generic_t **out)
-{
- size_t size = sizeof(*src) + src->payload_bytes_used;
- sqfs_inode_generic_t *copy = calloc(1, size);
-
- if (copy == NULL)
- return SQFS_ERROR_ALLOC;
-
- memcpy(copy, src, size);
- *out = copy;
- return 0;
-}
-
int sqfs_inode_get_xattr_index(const sqfs_inode_generic_t *inode,
sqfs_u32 *out)
{