]> mj.ucw.cz Git - libucw.git/blobdiff - lib/lizard.h
Added bfilesync().
[libucw.git] / lib / lizard.h
index 838d683f7849f30de68f797a467a676fc491f672..bc7f317ea15f86aac9672b1bfa6714f1dd470404 100644 (file)
@@ -37,7 +37,13 @@ struct lizard_buffer *lizard_alloc(void);
 void lizard_free(struct lizard_buffer *buf);
 byte *lizard_decompress_safe(byte *in, struct lizard_buffer *buf, uns expected_length);
 
+/* adler32.c */
 uns update_adler32(uns adler, byte *ptr, uns len);
-uns adler32(byte *ptr, uns len);
+
+static inline uns
+adler32(byte *buf, uns len)
+{
+  return update_adler32(1, buf, len);
+}
 
 #endif