mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH][RESEND] zlib : Fix usage example of zlib_adler32()
@ 2015-10-05 20:23 Anish Bhatt
  2015-10-05 20:27 ` Andrew Morton
  0 siblings, 1 reply; 4+ messages in thread
From: Anish Bhatt @ 2015-10-05 20:23 UTC (permalink / raw)
  To: linux-kernel; +Cc: trivial, jikos, akpm, Anish Bhatt

alder32 was renamed to zlib_adler32 since before 2.6.11, update
the example accordingly. This code does not seem to have an
assigned maintainer.

Signed-off-by: Anish Bhatt <anish@gatech.edu>
---
 include/linux/zutil.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/zutil.h b/include/linux/zutil.h
index 6adfa9a..6636895 100644
--- a/include/linux/zutil.h
+++ b/include/linux/zutil.h
@@ -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();
 */
-- 
1.9.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH][RESEND] zlib : Fix usage example of zlib_adler32()
  2015-10-05 20:23 [PATCH][RESEND] zlib : Fix usage example of zlib_adler32() Anish Bhatt
@ 2015-10-05 20:27 ` Andrew Morton
  2015-10-05 21:27   ` Anish Bhatt
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Morton @ 2015-10-05 20:27 UTC (permalink / raw)
  To: Anish Bhatt; +Cc: linux-kernel, trivial, jikos

On Mon,  5 Oct 2015 13:23:58 -0700 Anish Bhatt <anish@gatech.edu> wrote:

> alder32 was renamed to zlib_adler32 since before 2.6.11, update
> the example accordingly. This code does not seem to have an
> assigned maintainer.
> 
> ...
>
> --- a/include/linux/zutil.h
> +++ b/include/linux/zutil.h
> @@ -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();
>  */

I applied this September 15.  You should have received the commit
email on that date.  I'm not a spammer, honest.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH][RESEND] zlib : Fix usage example of zlib_adler32()
  2015-10-05 20:27 ` Andrew Morton
@ 2015-10-05 21:27   ` Anish Bhatt
  0 siblings, 0 replies; 4+ messages in thread
From: Anish Bhatt @ 2015-10-05 21:27 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, trivial, jikos

On Mon, Oct 5, 2015 at 1:27 PM, Andrew Morton <akpm@linux-foundation.org> wrote:
> On Mon,  5 Oct 2015 13:23:58 -0700 Anish Bhatt <anish@gatech.edu> wrote:
>
>> alder32 was renamed to zlib_adler32 since before 2.6.11, update
>> the example accordingly. This code does not seem to have an
>> assigned maintainer.
>>
>> ...
>>
>> --- a/include/linux/zutil.h
>> +++ b/include/linux/zutil.h
>> @@ -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();
>>  */
>
> I applied this September 15.  You should have received the commit
> email on that date.  I'm not a spammer, honest.

That is weird, I don't see a notification in the spam folder either, but I do
see that the code has changed. Sorry about the noise.

-Anish

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH][RESEND] zlib : Fix usage example of zlib_adler32()
@ 2015-09-08 19:13 Anish Bhatt
  0 siblings, 0 replies; 4+ messages in thread
From: Anish Bhatt @ 2015-09-08 19:13 UTC (permalink / raw)
  To: linux-kernel, trivial; +Cc: akpm, Anish Bhatt

alder32 was renamed to zlib_adler32 since before 2.6.11, this code
does not seem to have an assigned maintainer.

Signed-off-by: Anish Bhatt <anish@chelsio.com>
---
 include/linux/zutil.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/zutil.h b/include/linux/zutil.h
index 6adfa9a..6636895 100644
--- a/include/linux/zutil.h
+++ b/include/linux/zutil.h
@@ -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();
 */
-- 
2.5.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-10-05 21:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-05 20:23 [PATCH][RESEND] zlib : Fix usage example of zlib_adler32() Anish Bhatt
2015-10-05 20:27 ` Andrew Morton
2015-10-05 21:27   ` Anish Bhatt
  -- strict thread matches above, loose matches on Subject: below --
2015-09-08 19:13 Anish Bhatt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®