* + zlib-fix-usage-example-of-zlib_adler32.patch added to -mm tree
@ 2015-09-15 23:00 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2015-09-15 23:00 UTC (permalink / raw
To: anish, mm-commits
The patch titled
Subject: include/linux/zutil.h: fix usage example of zlib_adler32()
has been added to the -mm tree. Its filename is
zlib-fix-usage-example-of-zlib_adler32.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/zlib-fix-usage-example-of-zlib_adler32.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/zlib-fix-usage-example-of-zlib_adler32.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Anish Bhatt <anish@chelsio.com>
Subject: include/linux/zutil.h: fix usage example of zlib_adler32()
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>
---
include/linux/zutil.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff -puN include/linux/zutil.h~zlib-fix-usage-example-of-zlib_adler32 include/linux/zutil.h
--- a/include/linux/zutil.h~zlib-fix-usage-example-of-zlib_adler32
+++ a/include/linux/zutil.h
@@ -68,10 +68,10 @@ typedef uLong (*check_func) (uLong check
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();
*/
_
Patches currently in -mm which might be from anish@chelsio.com are
zlib-fix-usage-example-of-zlib_adler32.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-09-15 23:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-15 23:00 + zlib-fix-usage-example-of-zlib_adler32.patch added to -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.