diff options
author | thegeorg <thegeorg@yandex-team.com> | 2023-09-06 21:59:05 +0300 |
---|---|---|
committer | thegeorg <thegeorg@yandex-team.com> | 2023-09-06 22:15:57 +0300 |
commit | 53f81d0ce8d2103f54b291b25f171ecd00e13d81 (patch) | |
tree | 84e1a98ec06c4570e9dfbd9cf9176d22b3488d95 /contrib/libs/zlib/compress.c | |
parent | 645adb92481ca39f3981285fde9b5f41e783e978 (diff) | |
download | ydb-53f81d0ce8d2103f54b291b25f171ecd00e13d81.tar.gz |
Update contrib/libs/zlib to 1.3
Diffstat (limited to 'contrib/libs/zlib/compress.c')
-rw-r--r-- | contrib/libs/zlib/compress.c | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/contrib/libs/zlib/compress.c b/contrib/libs/zlib/compress.c index 2ad5326c14e..f43bacf7ab9 100644 --- a/contrib/libs/zlib/compress.c +++ b/contrib/libs/zlib/compress.c @@ -19,13 +19,8 @@ memory, Z_BUF_ERROR if there was not enough room in the output buffer, Z_STREAM_ERROR if the level parameter is invalid. */ -int ZEXPORT compress2(dest, destLen, source, sourceLen, level) - Bytef *dest; - uLongf *destLen; - const Bytef *source; - uLong sourceLen; - int level; -{ +int ZEXPORT compress2(Bytef *dest, uLongf *destLen, const Bytef *source, + uLong sourceLen, int level) { z_stream stream; int err; const uInt max = (uInt)-1; @@ -65,12 +60,8 @@ int ZEXPORT compress2(dest, destLen, source, sourceLen, level) /* =========================================================================== */ -int ZEXPORT compress(dest, destLen, source, sourceLen) - Bytef *dest; - uLongf *destLen; - const Bytef *source; - uLong sourceLen; -{ +int ZEXPORT compress(Bytef *dest, uLongf *destLen, const Bytef *source, + uLong sourceLen) { return compress2(dest, destLen, source, sourceLen, Z_DEFAULT_COMPRESSION); } @@ -78,9 +69,7 @@ int ZEXPORT compress(dest, destLen, source, sourceLen) If the default memLevel or windowBits for deflateInit() is changed, then this function needs to be updated. */ -uLong ZEXPORT compressBound(sourceLen) - uLong sourceLen; -{ +uLong ZEXPORT compressBound(uLong sourceLen) { return sourceLen + (sourceLen >> 12) + (sourceLen >> 14) + (sourceLen >> 25) + 13; } |