X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fadler32.c;h=174b611d765c3ee0225200c8eb0ad094dde5ceed;hb=f17e4350dcf0c033891e52b30b0c32a4a4fed5e0;hp=87a392ccd0bd2a80754b311cc5387e36e755977f;hpb=031256ad2e123eec58521f8e3eb9496c197641d2;p=libucw.git diff --git a/ucw/adler32.c b/ucw/adler32.c index 87a392cc..174b611d 100644 --- a/ucw/adler32.c +++ b/ucw/adler32.c @@ -7,8 +7,8 @@ * distribution and use, see copyright notice in zlib.h. */ -#include "ucw/lib.h" -#include "ucw/lizard.h" +#include +#include #define BASE 65521UL /* largest prime smaller than 65536 */ #define NMAX 5552 /* NMAX is the largest n such that 255n(n+1)/2 + (n+1)(BASE-1) <= 2^32-1 */ @@ -21,7 +21,7 @@ #define MOD(a) a %= BASE uns -update_adler32(uns adler, const byte *buf, uns len) +adler32_update(uns adler, const byte *buf, uns len) { uns s1 = adler & 0xffff; uns s2 = (adler >> 16) & 0xffff;