diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-20 22:26:56 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-20 22:26:56 +0200 |
commit | 012a83c9466e8668fc08acb6a80fa4dd5c82997c (patch) | |
tree | 4cd6cb483db184e2fd560a48c3650431cb1fd5d3 /lib/sqfshelper/data_reader_dump.c | |
parent | 1a6b70f3702d3bdb0f1cb8e4669ec5ed21ea923b (diff) |
Add sqfs_ prefix to data_reader_t & functions
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfshelper/data_reader_dump.c')
-rw-r--r-- | lib/sqfshelper/data_reader_dump.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/sqfshelper/data_reader_dump.c b/lib/sqfshelper/data_reader_dump.c index 23cd482..0c7a0cc 100644 --- a/lib/sqfshelper/data_reader_dump.c +++ b/lib/sqfshelper/data_reader_dump.c @@ -16,8 +16,9 @@ #include <string.h> #include <stdio.h> -int data_reader_dump(data_reader_t *data, const sqfs_inode_generic_t *inode, - int outfd, size_t block_size, bool allow_sparse) +int sqfs_data_reader_dump(sqfs_data_reader_t *data, + const sqfs_inode_generic_t *inode, + int outfd, size_t block_size, bool allow_sparse) { sqfs_block_t *blk; uint64_t filesz; @@ -47,7 +48,7 @@ int data_reader_dump(data_reader_t *data, const sqfs_inode_generic_t *inode, if (lseek(outfd, diff, SEEK_CUR) == (off_t)-1) goto fail_sparse; } else { - err = data_reader_get_block(data, inode, i, &blk); + err = sqfs_data_reader_get_block(data, inode, i, &blk); if (err) { fprintf(stderr, "error reading " "data block: %d\n", err); @@ -66,7 +67,7 @@ int data_reader_dump(data_reader_t *data, const sqfs_inode_generic_t *inode, } if (filesz > 0) { - if (data_reader_get_fragment(data, inode, &blk)) { + if (sqfs_data_reader_get_fragment(data, inode, &blk)) { fputs("error reading fragment block", stderr); return -1; } |