]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix build failure without zlib.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 13 Oct 2014 07:49:46 +0000 (16:49 +0900)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 13 Oct 2014 07:49:46 +0000 (16:49 +0900)
libarchive/archive_read_support_format_zip.c
libarchive/archive_write_set_format_zip.c

index 3bd9afdb34cff3812d5ef4ee244374b33fac06a5..6609b072efc7a66dde9ebf1327a72d0f4af946a2 100644 (file)
@@ -325,7 +325,7 @@ crypt_derive_key_sha1(const void *p, int size, unsigned char *key,
 static unsigned long
 real_crc32(unsigned long crc, const void *buff, size_t len)
 {
-       return crc32(crc, buff, (uInt)len);
+       return crc32(crc, buff, (unsigned int)len);
 }
 
 static unsigned long
index 252d0af8500f015038e951b3d380caa085a026a6..00463fac898303128ebc384b69ea78c0c9427b7e 100644 (file)
@@ -232,7 +232,7 @@ cd_alloc(struct zip *zip, size_t length)
 static unsigned long
 real_crc32(unsigned long crc, const void *buff, size_t len)
 {
-       return crc32(crc, buff, (uInt)len);
+       return crc32(crc, buff, (unsigned int)len);
 }
 
 static unsigned long