summaryrefslogtreecommitdiff
path: root/compress.c
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:13:27 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:13:27 -0700
commit8a2acbffc86012de3523ecf91db2c4ea1b1c4ea2 (patch)
treec461eb314065024b6cb87d136e107dca2cc09a33 /compress.c
parent56bcb184fac036a45cb8937238d51778d0a796aa (diff)
downloadzlib-8a2acbffc86012de3523ecf91db2c4ea1b1c4ea2.tar.gz
zlib 1.0-prev1.0-pre
Diffstat (limited to 'compress.c')
-rw-r--r--compress.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/compress.c b/compress.c
index be9ef64..5addd8d 100644
--- a/compress.c
+++ b/compress.c
@@ -1,5 +1,5 @@
/* compress.c -- compress a memory buffer
- * Copyright (C) 1995-1996 Jean-loup Gailly.
+ * Copyright (C) 1995 Jean-loup Gailly.
* For conditions of distribution and use, see copyright notice in zlib.h
*/
@@ -22,13 +22,13 @@
int compress (dest, destLen, source, sourceLen)
Bytef *dest;
uLongf *destLen;
- const Bytef *source;
+ Bytef *source;
uLong sourceLen;
{
z_stream stream;
int err;
- stream.next_in = (Bytef*)source;
+ stream.next_in = source;
stream.avail_in = (uInt)sourceLen;
/* Check for source > 64K on 16-bit machine: */
if ((uLong)stream.avail_in != sourceLen) return Z_BUF_ERROR;