diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-06-03 15:32:39 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-06-03 15:32:39 +0200 |
commit | 69eac5341d49c5c7278e6d86a77dc9d6b4a4edde (patch) | |
tree | 3d2f55b8fa0a8adc778be7902667543c03202aff /runtime/zlibw.c | |
parent | f54e72cec06f21f4af939c70541e8a339b7e56ff (diff) | |
download | rsyslog-69eac5341d49c5c7278e6d86a77dc9d6b4a4edde.tar.gz rsyslog-69eac5341d49c5c7278e6d86a77dc9d6b4a4edde.tar.xz rsyslog-69eac5341d49c5c7278e6d86a77dc9d6b4a4edde.zip |
added gzip header to output files
so they can now be processed with the "regular" gzip tools
Diffstat (limited to 'runtime/zlibw.c')
-rw-r--r-- | runtime/zlibw.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/runtime/zlibw.c b/runtime/zlibw.c index 95ac9138..2b386213 100644 --- a/runtime/zlibw.c +++ b/runtime/zlibw.c @@ -51,9 +51,9 @@ static int myDeflateInit(z_streamp strm, int level) return deflateInit(strm, level); } -static int myDeflate(z_streamp strm, int flush) +static int myDeflateInit2(z_streamp strm, int level, int method, int windowBits, int memLevel, int strategy) { - return deflate(strm, flush); + return deflateInit2(strm, level, method, windowBits, memLevel, strategy); } static int myDeflateEnd(z_streamp strm) @@ -61,6 +61,11 @@ static int myDeflateEnd(z_streamp strm) return deflateEnd(strm); } +static int myDeflate(z_streamp strm, int flush) +{ + return deflate(strm, flush); +} + /* queryInterface function * rgerhards, 2008-03-05 @@ -77,6 +82,7 @@ CODESTARTobjQueryInterface(zlibw) * of course, also affects the "if" above). */ pIf->DeflateInit = myDeflateInit; + pIf->DeflateInit2 = myDeflateInit2; pIf->Deflate = myDeflate; pIf->DeflateEnd = myDeflateEnd; finalize_it: |