summaryrefslogtreecommitdiff
path: root/block-cloop.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-02-01 21:43:52 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-02-01 21:43:52 +0000
commit28a5c9c8b26d7737b9908f912754711399954837 (patch)
tree1448ecda5dcb03b10f2937fb03eace6dab217e31 /block-cloop.c
parentacff9df6a80455a8228dd6547cdd2714dbbe93ec (diff)
downloadqemu-28a5c9c8b26d7737b9908f912754711399954837.tar.gz
qemu-28a5c9c8b26d7737b9908f912754711399954837.tar.bz2
qemu-28a5c9c8b26d7737b9908f912754711399954837.zip
use uint8_t instead of char
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1734 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'block-cloop.c')
-rw-r--r--block-cloop.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/block-cloop.c b/block-cloop.c
index de90855383..c617e1b64b 100644
--- a/block-cloop.c
+++ b/block-cloop.c
@@ -32,8 +32,8 @@ typedef struct BDRVCloopState {
uint64_t* offsets;
uint32_t sectors_per_block;
uint32_t current_block;
- char* compressed_block;
- char* uncompressed_block;
+ uint8_t *compressed_block;
+ uint8_t *uncompressed_block;
z_stream zstream;
} BDRVCloopState;
@@ -89,9 +89,9 @@ cloop_close:
}
/* initialize zlib engine */
- if(!(s->compressed_block=(char*)malloc(max_compressed_block_size+1)))
+ if(!(s->compressed_block = malloc(max_compressed_block_size+1)))
goto cloop_close;
- if(!(s->uncompressed_block=(char*)malloc(s->block_size)))
+ if(!(s->uncompressed_block = malloc(s->block_size)))
goto cloop_close;
if(inflateInit(&s->zstream) != Z_OK)
goto cloop_close;