Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Make zlib compression level configurable, and change default.
[gitweb.git]
/
diff.c
diff --git
a/diff.c
b/diff.c
index 5a71489a471568fb3aa51af5d74fa269ec4fadf1..428ff786ebdbd48a47ae5faf4c65c01e38403ad4 100644
(file)
--- a/
diff.c
+++ b/
diff.c
@@
-583,7
+583,7
@@
static unsigned char *deflate_it(char *data,
z_stream stream;
memset(&stream, 0, sizeof(stream));
- deflateInit(&stream,
Z_BEST_COMPRESSION
);
+ deflateInit(&stream,
zlib_compression_level
);
bound = deflateBound(&stream, size);
deflated = xmalloc(bound);
stream.next_out = deflated;