diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-05 17:10:33 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-05 17:12:04 +0200 |
commit | dd5d7adaa914982e8947bfe76fa3f195ed11cdb1 (patch) | |
tree | 541325774fa90814fbef1e9f9c5677c8330ef8c1 /lib/sqfs/write_table.c | |
parent | d5f89c52d219332c48a46aa297bb4896e8c159aa (diff) |
Cleanup: add sqfs_* prefix to meta writer
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/write_table.c')
-rw-r--r-- | lib/sqfs/write_table.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/sqfs/write_table.c b/lib/sqfs/write_table.c index a2814a4..7c24087 100644 --- a/lib/sqfs/write_table.c +++ b/lib/sqfs/write_table.c @@ -19,7 +19,7 @@ int sqfs_write_table(int outfd, sqfs_super_t *super, compressor_t *cmp, { size_t block_count, list_size, diff, blkidx = 0; uint64_t block, *locations; - meta_writer_t *m; + sqfs_meta_writer_t *m; uint32_t offset; int ret = -1; @@ -35,29 +35,29 @@ int sqfs_write_table(int outfd, sqfs_super_t *super, compressor_t *cmp, } /* Write actual data */ - m = meta_writer_create(outfd, cmp, false); + m = sqfs_meta_writer_create(outfd, cmp, false); if (m == NULL) goto out_idx; while (table_size > 0) { - meta_writer_get_position(m, &block, &offset); + sqfs_meta_writer_get_position(m, &block, &offset); locations[blkidx++] = htole64(super->bytes_used + block); diff = SQFS_META_BLOCK_SIZE; if (diff > table_size) diff = table_size; - if (meta_writer_append(m, data, diff)) + if (sqfs_meta_writer_append(m, data, diff)) goto out; data = (const char *)data + diff; table_size -= diff; } - if (meta_writer_flush(m)) + if (sqfs_meta_writer_flush(m)) goto out; - meta_writer_get_position(m, &block, &offset); + sqfs_meta_writer_get_position(m, &block, &offset); super->bytes_used += block; /* write location list */ @@ -72,7 +72,7 @@ int sqfs_write_table(int outfd, sqfs_super_t *super, compressor_t *cmp, /* cleanup */ ret = 0; out: - meta_writer_destroy(m); + sqfs_meta_writer_destroy(m); out_idx: free(locations); return ret; |