]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Obey new def_compress_level setting.
authorWayne Davison <wayned@samba.org>
Wed, 26 Oct 2005 16:47:49 +0000 (16:47 +0000)
committerWayne Davison <wayned@samba.org>
Wed, 26 Oct 2005 16:47:49 +0000 (16:47 +0000)
token.c

diff --git a/token.c b/token.c
index 67acbd988f9979c3c3b3a9cb96c1abfa67987e5d..3286a13d80e06f528c914f64c949d239bad61087 100644 (file)
--- a/token.c
+++ b/token.c
@@ -22,8 +22,9 @@
 
 extern int do_compression;
 extern int module_id;
+extern int def_compress_level;
 
-static int compression_level = Z_DEFAULT_COMPRESSION;
+static int compression_level;
 
 /* determine the compression level based on a wildcard filename list */
 void set_compression(char *fname)
@@ -34,7 +35,7 @@ void set_compression(char *fname)
        if (!do_compression)
                return;
 
-       compression_level = Z_DEFAULT_COMPRESSION;
+       compression_level = def_compress_level;
        dont = lp_dont_compress(module_id);
 
        if (!dont || !*dont)