Fix image tool compile warnings

This commit is contained in:
yanhai zhu 2008-12-02 07:19:08 -05:00 committed by Chris Mason
parent aa62e84c84
commit f27688bde8
1 changed files with 5 additions and 4 deletions

View File

@ -216,8 +216,9 @@ static void *dump_worker(void *data)
async->bufsize = compressBound(async->size);
async->buffer = malloc(async->bufsize);
ret = compress2(async->buffer, &async->bufsize, orig,
async->size, md->compress_level);
ret = compress2(async->buffer,
(unsigned long *)&async->bufsize,
orig, async->size, md->compress_level);
BUG_ON(ret != Z_OK);
free(orig);
@ -595,8 +596,8 @@ static void *restore_worker(void *data)
if (mdres->compress_method == COMPRESS_ZLIB) {
size = MAX_PENDING_SIZE * 2;
ret = uncompress(buffer, &size, async->buffer,
async->bufsize);
ret = uncompress(buffer, (unsigned long *)&size,
async->buffer, async->bufsize);
BUG_ON(ret != Z_OK);
outbuf = buffer;
} else {