summaryrefslogtreecommitdiff
path: root/lib/sqfshelper
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-15 18:07:47 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-15 18:07:47 +0200
commit129e1758a5e2cf851f042e139fdd808a9be9ce94 (patch)
tree2d94d2135446afe659e94f57103d2e2eab26389c /lib/sqfshelper
parent8ee3ee9c71418dbdb73d4350c17056024fb7ec41 (diff)
Move sparse_map_t to libsquashfs headers, rename it to sqfs_sparse_map_t
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfshelper')
-rw-r--r--lib/sqfshelper/data_writer.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/sqfshelper/data_writer.c b/lib/sqfshelper/data_writer.c
index edd1770..a6d0297 100644
--- a/lib/sqfshelper/data_writer.c
+++ b/lib/sqfshelper/data_writer.c
@@ -390,9 +390,9 @@ int write_data_from_file(data_writer_t *data, file_info_t *fi,
return 0;
}
-static int check_map_valid(const sparse_map_t *map, file_info_t *fi)
+static int check_map_valid(const sqfs_sparse_map_t *map, file_info_t *fi)
{
- const sparse_map_t *m;
+ const sqfs_sparse_map_t *m;
uint64_t offset;
if (map != NULL) {
@@ -421,10 +421,10 @@ fail_map:
}
static int get_sparse_block(sqfs_block_t *blk, file_info_t *fi, int infd,
- sparse_map_t **sparse_map, uint64_t offset,
+ sqfs_sparse_map_t **sparse_map, uint64_t offset,
size_t diff)
{
- sparse_map_t *map = *sparse_map;
+ sqfs_sparse_map_t *map = *sparse_map;
size_t start, count;
while (map != NULL && map->offset < offset + diff) {
@@ -451,7 +451,7 @@ static int get_sparse_block(sqfs_block_t *blk, file_info_t *fi, int infd,
}
int write_data_from_fd_condensed(data_writer_t *data, file_info_t *fi,
- int infd, sparse_map_t *map, int flags)
+ int infd, sqfs_sparse_map_t *map, int flags)
{
uint32_t blk_flags = BLK_FIRST_BLOCK;
size_t diff, i = 0;