summaryrefslogtreecommitdiffstats
path: root/cpukit/zlib/uncompr.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-03-18 10:11:29 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-03-18 10:11:29 +0000
commit6121dc77366dbc5b7fe28e6d405e498e79630c15 (patch)
treeda2e2000ca12b6e2c1c739f123d867b0f182c841 /cpukit/zlib/uncompr.c
parentThis commit was generated by cvs2svn to compensate for changes in r25189, (diff)
downloadrtems-6121dc77366dbc5b7fe28e6d405e498e79630c15.tar.bz2
2010-03-22 Joel Sherrill <joel.sherrill@oarcorp.com>
* ChangeLog.zlib, FAQ, Makefile.am, README, adler32.c, compress.c, crc32.c, deflate.c, deflate.h, infback.c, inffast.c, inflate.c, inflate.h, inftrees.c, inftrees.h, trees.c, uncompr.c, zconf.h, zlib.3, zlib.h, zutil.c, zutil.h: Update to zlib 1.2.4. * gzclose.c, gzguts.h, gzlib.c, gzread.c, gzwrite.c, doc/algorithm.txt: New files. * algorithm.txt, gzio.c: Removed.
Diffstat (limited to 'cpukit/zlib/uncompr.c')
-rw-r--r--cpukit/zlib/uncompr.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/cpukit/zlib/uncompr.c b/cpukit/zlib/uncompr.c
index 89d42a47a2..ad98be3a5d 100644
--- a/cpukit/zlib/uncompr.c
+++ b/cpukit/zlib/uncompr.c
@@ -1,5 +1,5 @@
/* 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
*/
@@ -16,18 +16,16 @@
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
buffer, or Z_DATA_ERROR if the input data was corrupted.
*/
-int ZEXPORT uncompress (
- Bytef *dest,
- uLongf *destLen,
- const Bytef *source,
- uLong sourceLen)
+int ZEXPORT uncompress (dest, destLen, source, sourceLen)
+ Bytef *dest;
+ uLongf *destLen;
+ const Bytef *source;
+ uLong sourceLen;
{
z_stream stream;
int err;