X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=csum-file.c;h=7088f6e93f02985f5fa5c687eb59f90ae4c13f7c;hb=1654a3ba0c3a91ee3c0f38c922e3d2d1255ec868;hp=7c806ada48d0fd58c091f9415fc8bb2f61bdd2e6;hpb=679c7c56ed9f73db5892fe17ef9b67b84b0ca242;p=git.git diff --git a/csum-file.c b/csum-file.c index 7c806ada4..7088f6e93 100644 --- a/csum-file.c +++ b/csum-file.c @@ -119,14 +119,14 @@ struct sha1file *sha1fd(int fd, const char *name) return f; } -int sha1write_compressed(struct sha1file *f, void *in, unsigned int size) +int sha1write_compressed(struct sha1file *f, void *in, unsigned int size, int level) { z_stream stream; unsigned long maxsize; void *out; memset(&stream, 0, sizeof(stream)); - deflateInit(&stream, zlib_compression_level); + deflateInit(&stream, level); maxsize = deflateBound(&stream, size); out = xmalloc(maxsize);