Commit cb7ae262 authored by Anish Bhatt's avatar Anish Bhatt Committed by Linus Torvalds

include/linux/zutil.h: fix usage example of zlib_adler32()

alder32 was renamed to zlib_adler32 since before 2.6.11.
Signed-off-by: default avatarAnish Bhatt <anish@chelsio.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 08d78658
...@@ -68,10 +68,10 @@ typedef uLong (*check_func) (uLong check, const Byte *buf, ...@@ -68,10 +68,10 @@ typedef uLong (*check_func) (uLong check, const Byte *buf,
An Adler-32 checksum is almost as reliable as a CRC32 but can be computed An Adler-32 checksum is almost as reliable as a CRC32 but can be computed
much faster. Usage example: much faster. Usage example:
uLong adler = adler32(0L, NULL, 0); uLong adler = zlib_adler32(0L, NULL, 0);
while (read_buffer(buffer, length) != EOF) { while (read_buffer(buffer, length) != EOF) {
adler = adler32(adler, buffer, length); adler = zlib_adler32(adler, buffer, length);
} }
if (adler != original_adler) error(); if (adler != original_adler) error();
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment