aboutsummaryrefslogtreecommitdiff
path: root/zlib/contrib/puff/puff.h
diff options
context:
space:
mode:
Diffstat (limited to 'zlib/contrib/puff/puff.h')
-rw-r--r--zlib/contrib/puff/puff.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/zlib/contrib/puff/puff.h b/zlib/contrib/puff/puff.h
index ef612520b..6a0080ae1 100644
--- a/zlib/contrib/puff/puff.h
+++ b/zlib/contrib/puff/puff.h
@@ -1,6 +1,6 @@
/* puff.h
- Copyright (C) 2002, 2003 Mark Adler, all rights reserved
- version 1.7, 3 Mar 2002
+ Copyright (C) 2002-2010 Mark Adler, all rights reserved
+ version 2.2, 25 Apr 2010
This software is provided 'as-is', without any express or implied
warranty. In no event will the author be held liable for any damages
@@ -25,7 +25,11 @@
/*
* See puff.c for purpose and usage.
*/
+#ifndef NIL
+# define NIL ((unsigned char *)0) /* for no output option */
+#endif
+
int puff(unsigned char *dest, /* pointer to destination pointer */
unsigned long *destlen, /* amount of output space */
- unsigned char *source, /* pointer to source data pointer */
+ const unsigned char *source, /* pointer to source data pointer */
unsigned long *sourcelen); /* amount of input available */