]> mj.ucw.cz Git - libucw.git/commitdiff
update_adler32 -> adler32_update (similar to {md5,sha1}_update)
authorPavel Charvat <pchar@ucw.cz>
Thu, 30 Oct 2008 09:20:57 +0000 (10:20 +0100)
committerPavel Charvat <pchar@ucw.cz>
Thu, 30 Oct 2008 09:20:57 +0000 (10:20 +0100)
ucw/adler32.c
ucw/lizard.h

index 87a392ccd0bd2a80754b311cc5387e36e755977f..28b2b05afa5fd04317ec0f5265245e1e49c6005d 100644 (file)
@@ -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;
index 616d17b0c07e104f149ffff14f0774d2044c458b..547f181dc2af3fc813f7d1ebdf3bb8b3109b39aa 100644 (file)
@@ -38,12 +38,12 @@ void lizard_free(struct lizard_buffer *buf);
 byte *lizard_decompress_safe(const byte *in, struct lizard_buffer *buf, uns expected_length);
 
 /* adler32.c */
-uns update_adler32(uns adler, const byte *ptr, uns len);
+uns adler32_update(uns adler, const byte *ptr, uns len);
 
 static inline uns
 adler32(const byte *buf, uns len)
 {
-  return update_adler32(1, buf, len);
+  return adler32_update(1, buf, len);
 }
 
 #endif