diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-02-01 21:43:52 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-02-01 21:43:52 +0000 |
commit | 28a5c9c8b26d7737b9908f912754711399954837 (patch) | |
tree | 1448ecda5dcb03b10f2937fb03eace6dab217e31 /block-dmg.c | |
parent | acff9df6a80455a8228dd6547cdd2714dbbe93ec (diff) | |
download | qemu-28a5c9c8b26d7737b9908f912754711399954837.zip qemu-28a5c9c8b26d7737b9908f912754711399954837.tar.gz qemu-28a5c9c8b26d7737b9908f912754711399954837.tar.bz2 |
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-dmg.c')
-rw-r--r-- | block-dmg.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/block-dmg.c b/block-dmg.c index 5df7235..a16ab92 100644 --- a/block-dmg.c +++ b/block-dmg.c @@ -44,8 +44,8 @@ typedef struct BDRVDMGState { uint64_t* sectors; uint64_t* sectorcounts; uint32_t current_chunk; - char* compressed_chunk; - char* uncompressed_chunk; + uint8_t *compressed_chunk; + uint8_t *uncompressed_chunk; z_stream zstream; } BDRVDMGState; @@ -159,9 +159,9 @@ dmg_close: } /* initialize zlib engine */ - if(!(s->compressed_chunk=(char*)malloc(max_compressed_size+1))) + if(!(s->compressed_chunk = malloc(max_compressed_size+1))) goto dmg_close; - if(!(s->uncompressed_chunk=(char*)malloc(512*max_sectors_per_chunk))) + if(!(s->uncompressed_chunk = malloc(512*max_sectors_per_chunk))) goto dmg_close; if(inflateInit(&s->zstream) != Z_OK) goto dmg_close; |