diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-05 17:00:57 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-05 17:00:57 +0200 |
commit | d5f89c52d219332c48a46aa297bb4896e8c159aa (patch) | |
tree | 23ff58002556e9880373b4285029d38cc0c1ccae /lib/sqfshelper/xattr_reader.c | |
parent | 6391ed9a18caf89ade24c05083569c66d8daa33b (diff) |
Cleanup: unify sqfs/SQFS name prefix for xattr reader
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfshelper/xattr_reader.c')
-rw-r--r-- | lib/sqfshelper/xattr_reader.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/sqfshelper/xattr_reader.c b/lib/sqfshelper/xattr_reader.c index 2cf1114..a0dc6f6 100644 --- a/lib/sqfshelper/xattr_reader.c +++ b/lib/sqfshelper/xattr_reader.c @@ -15,7 +15,7 @@ #include <stdio.h> #include <errno.h> -static int restore_kv_pairs(xattr_reader_t *xr, fstree_t *fs, +static int restore_kv_pairs(sqfs_xattr_reader_t *xr, fstree_t *fs, tree_node_t *node) { size_t i, key_idx, val_idx; @@ -24,11 +24,11 @@ static int restore_kv_pairs(xattr_reader_t *xr, fstree_t *fs, int ret; for (i = 0; i < node->xattr->num_attr; ++i) { - key = xattr_reader_read_key(xr); + key = sqfs_xattr_reader_read_key(xr); if (key == NULL) return -1; - val = xattr_reader_read_value(xr, key); + val = sqfs_xattr_reader_read_value(xr, key); if (val == NULL) goto fail_key; @@ -69,7 +69,7 @@ fail_key: return -1; } -int xattr_reader_restore_node(xattr_reader_t *xr, fstree_t *fs, +int xattr_reader_restore_node(sqfs_xattr_reader_t *xr, fstree_t *fs, tree_node_t *node, uint32_t xattr) { sqfs_xattr_id_t desc; @@ -82,7 +82,7 @@ int xattr_reader_restore_node(xattr_reader_t *xr, fstree_t *fs, } } - if (xattr_reader_get_desc(xr, xattr, &desc)) + if (sqfs_xattr_reader_get_desc(xr, xattr, &desc)) return -1; if (desc.count == 0 || desc.size == 0) @@ -101,7 +101,7 @@ int xattr_reader_restore_node(xattr_reader_t *xr, fstree_t *fs, node->xattr->index = xattr; node->xattr->owner = node; - if (xattr_reader_seek_kv(xr, &desc)) + if (sqfs_xattr_reader_seek_kv(xr, &desc)) return -1; if (restore_kv_pairs(xr, fs, node)) { |