X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=deflate.c;h=0950391ee88ba44a67a36ce4f1b14c87f79ebaa3;hb=ab2dee7101e75806a54d954f726bcb5b969f1ab7;hp=2f55a7cc8b8fa5b7bb50cff8ee41d469e1a5afa3;hpb=0d5a754ba8f2cc33e98d48d559f0ad6cd18a43a3;p=debian%2Fgzip diff --git a/deflate.c b/deflate.c index 2f55a7c..0950391 100644 --- a/deflate.c +++ b/deflate.c @@ -1,11 +1,11 @@ /* deflate.c -- compress data using the deflation algorithm - Copyright (C) 1999, 2006 Free Software Foundation, Inc. + Copyright (C) 1999, 2006, 2009-2010 Free Software Foundation, Inc. Copyright (C) 1992-1993 Jean-loup Gailly This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -81,10 +81,6 @@ #include "gzip.h" #include "lzw.h" /* just for consistency checking */ -#ifdef RCSID -static char rcsid[] = "$Id: deflate.c,v 1.5 2006/12/07 23:53:00 eggert Exp $"; -#endif - /* =========================================================================== * Configuration parameters */ @@ -255,9 +251,6 @@ local config configuration_table[10] = { * meaning. */ -#define EQUAL 0 -/* result of memcmp for equal strings */ - /* =========================================================================== * Prototypes for local functions. */ @@ -504,7 +497,7 @@ local void check_match(start, match, length) { /* check that the match is indeed a match */ if (memcmp((char*)window + match, - (char*)window + start, length) != EQUAL) { + (char*)window + start, length) != 0) { fprintf(stderr, " start %d, match %d, length %d\n", start, match, length);