X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=deflate.c;h=0950391ee88ba44a67a36ce4f1b14c87f79ebaa3;hb=refs%2Ftags%2Fupstream%2F1.4;hp=3ba514d65c1a7025df0169ee39c56048976d25de;hpb=c7e61475680fa226bd9b8bdd469cd66914e630f5;p=debian%2Fgzip diff --git a/deflate.c b/deflate.c index 3ba514d..0950391 100644 --- a/deflate.c +++ b/deflate.c @@ -1,6 +1,6 @@ /* deflate.c -- compress data using the deflation algorithm - Copyright (C) 1999, 2006, 2009 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 @@ -251,9 +251,6 @@ local config configuration_table[10] = { * meaning. */ -#define EQUAL 0 -/* result of memcmp for equal strings */ - /* =========================================================================== * Prototypes for local functions. */ @@ -500,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);