Code

commit: ignore intent-to-add entries instead of refusing
[git.git] / archive-zip.c
index 081ff830c8b2345d2cf843f07496365934da0d6b..72d55a58ac60019f9f6175d4c86af47348630762 100644 (file)
@@ -90,14 +90,14 @@ static void copy_le32(unsigned char *dest, unsigned int n)
 static void *zlib_deflate(void *data, unsigned long size,
                int compression_level, unsigned long *compressed_size)
 {
-       z_stream stream;
+       git_zstream stream;
        unsigned long maxsize;
        void *buffer;
        int result;
 
        memset(&stream, 0, sizeof(stream));
        git_deflate_init(&stream, compression_level);
-       maxsize = deflateBound(&stream, size);
+       maxsize = git_deflate_bound(&stream, size);
        buffer = xmalloc(maxsize);
 
        stream.next_in = data;