Skip to content

Commit

Permalink
include/linux/zutil.h: fix usage example of zlib_adler32()
Browse files Browse the repository at this point in the history
alder32 was renamed to zlib_adler32 since before 2.6.11.

Signed-off-by: Anish Bhatt <anish@chelsio.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Anish Bhatt authored and Linus Torvalds committed Nov 7, 2015
1 parent 08d7865 commit cb7ae26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/linux/zutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
much faster. Usage example:
uLong adler = adler32(0L, NULL, 0);
uLong adler = zlib_adler32(0L, NULL, 0);
while (read_buffer(buffer, length) != EOF) {
adler = adler32(adler, buffer, length);
adler = zlib_adler32(adler, buffer, length);
}
if (adler != original_adler) error();
*/
Expand Down

0 comments on commit cb7ae26

Please sign in to comment.