diff options
author | yanhai zhu <zhu.yanhai@gmail.com> | 2008-12-02 07:19:08 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-12-02 07:19:08 -0500 |
commit | f27688bde8184bafa197343fc0d63ef8356d9512 (patch) | |
tree | 875c6552ece87b1961dd4b59f919d6d03f3dcf2b | |
parent | aa62e84c84436593edb56c9b9c61fa701c69f80e (diff) | |
download | btrfs-progs-f27688bde8184bafa197343fc0d63ef8356d9512.tar.gz |
Fix image tool compile warnings
-rw-r--r-- | btrfs-image.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/btrfs-image.c b/btrfs-image.c index 7499a5ea..9925bdbc 100644 --- a/btrfs-image.c +++ b/btrfs-image.c @@ -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 { |