aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/zlib/uncompr.c
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2014-01-09 12:26:18 +0100
committerBjörn Gustavsson <[email protected]>2014-01-14 09:30:34 +0100
commit9205b6671892e7516e8571e4ecf19bfa2ade1130 (patch)
treee2027206adefa16bdd3a323824986ef0719b4806 /erts/emulator/zlib/uncompr.c
parent069f9ec3dfd7a4dc17973e22dc271d40ebe11467 (diff)
downloadotp-9205b6671892e7516e8571e4ecf19bfa2ade1130.tar.gz
otp-9205b6671892e7516e8571e4ecf19bfa2ade1130.tar.bz2
otp-9205b6671892e7516e8571e4ecf19bfa2ade1130.zip
Update zlib to 1.2.8
Diffstat (limited to 'erts/emulator/zlib/uncompr.c')
-rw-r--r--erts/emulator/zlib/uncompr.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/erts/emulator/zlib/uncompr.c b/erts/emulator/zlib/uncompr.c
index cbc93cb1eb..864d571719 100644
--- a/erts/emulator/zlib/uncompr.c
+++ b/erts/emulator/zlib/uncompr.c
@@ -1,10 +1,8 @@
/* uncompr.c -- decompress a memory buffer
- * Copyright (C) 1995-2003 Jean-loup Gailly.
+ * Copyright (C) 1995-2003, 2010 Jean-loup Gailly.
* For conditions of distribution and use, see copyright notice in zlib.h
*/
-/* %ExternalCopyright% */
-
/* @(#) $Id$ */
#ifdef HAVE_CONFIG_H
@@ -21,8 +19,6 @@
been saved previously by the compressor and transmitted to the decompressor
by some mechanism outside the scope of this compression library.)
Upon exit, destLen is the actual size of the compressed buffer.
- This function can be used to decompress a whole file at once if the
- input file is mmap'ed.
uncompress returns Z_OK if success, Z_MEM_ERROR if there was not
enough memory, Z_BUF_ERROR if there was not enough room in the output
@@ -37,7 +33,7 @@ int ZEXPORT uncompress (dest, destLen, source, sourceLen)
z_stream stream;
int err;
- stream.next_in = (Bytef*)source;
+ stream.next_in = (z_const Bytef *)source;
stream.avail_in = (uInt)sourceLen;
/* Check for source > 64K on 16-bit machine: */
if ((uLong)stream.avail_in != sourceLen) return Z_BUF_ERROR;