summaryrefslogtreecommitdiffstats
path: root/lib/libz/inflate.c
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2005-05-11 03:47:48 +0000
committerkientzle <kientzle@FreeBSD.org>2005-05-11 03:47:48 +0000
commit2f1311730e491ca59294adde890462dadbeb3993 (patch)
tree3456c8a5a45eb53dd1ef5c3ec9bebb4b2ab74c3c /lib/libz/inflate.c
parent3f1dd047fb33cff02eb05f7dd92b73a4b805a5ea (diff)
downloadFreeBSD-src-2f1311730e491ca59294adde890462dadbeb3993.zip
FreeBSD-src-2f1311730e491ca59294adde890462dadbeb3993.tar.gz
Since the FreeBSD local modifications are mostly trivial (consisting
primarily of pointless $FreeBSD$ tags), sync most files in HEAD with those in the ZLIB branch. This minimizes the differences between HEAD and ZLIB and should simplify future imports. After this, there are only three files with local modifications (gzio.c, minigzip.c, and zconf.h) and two non-vendor files (Makefile, zopen.c). The rest exactly match the vendor distribution. PR: i386/76294 MFC after: 2 weeks
Diffstat (limited to 'lib/libz/inflate.c')
-rw-r--r--lib/libz/inflate.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/libz/inflate.c b/lib/libz/inflate.c
index 913f002..c6d3826 100644
--- a/lib/libz/inflate.c
+++ b/lib/libz/inflate.c
@@ -80,9 +80,6 @@
* The history for versions after 1.2.0 are in ChangeLog in zlib distribution.
*/
-#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
-
#include "zutil.h"
#include "inftrees.h"
#include "inflate.h"
@@ -112,6 +109,7 @@ z_streamp strm;
state = (struct inflate_state FAR *)strm->state;
strm->total_in = strm->total_out = state->total = 0;
strm->msg = Z_NULL;
+ strm->adler = 1; /* to support ill-conceived Java test suite */
state->mode = HEAD;
state->last = 0;
state->havedict = 0;
@@ -864,8 +862,8 @@ int flush;
}
}
- if (state->mode == BAD)
- break;
+ /* handle error breaks in while */
+ if (state->mode == BAD) break;
/* build code tables */
state->next = state->codes;
OpenPOWER on IntegriCloud