diff options
Diffstat (limited to 'lib/sqfs/process_block.c')
-rw-r--r-- | lib/sqfs/process_block.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/sqfs/process_block.c b/lib/sqfs/process_block.c index a20b56b..b0c8a91 100644 --- a/lib/sqfs/process_block.c +++ b/lib/sqfs/process_block.c @@ -12,15 +12,15 @@ #include <string.h> #include <zlib.h> -int process_block(block_t *block, compressor_t *cmp, - uint8_t *scratch, size_t scratch_size) +int sqfs_block_process(sqfs_block_t *block, compressor_t *cmp, + uint8_t *scratch, size_t scratch_size) { ssize_t ret; - if (!(block->flags & BLK_DONT_CHECKSUM)) + if (!(block->flags & SQFS_BLK_DONT_CHECKSUM)) block->checksum = crc32(0, block->data, block->size); - if (!(block->flags & BLK_DONT_COMPRESS)) { + if (!(block->flags & SQFS_BLK_DONT_COMPRESS)) { ret = cmp->do_block(cmp, block->data, block->size, scratch, scratch_size); @@ -30,7 +30,7 @@ int process_block(block_t *block, compressor_t *cmp, if (ret > 0) { memcpy(block->data, scratch, ret); block->size = ret; - block->flags |= BLK_IS_COMPRESSED; + block->flags |= SQFS_BLK_IS_COMPRESSED; } } |