lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87h64rnge5.fsf@trenco.lwn.net>
Date: Tue, 18 Feb 2025 13:32:02 -0700
From: Jonathan Corbet <corbet@....net>
To: Yu-Chun Lin <eleanor15x@...il.com>, akpm@...ux-foundation.org,
 visitorckw@...il.com
Cc: linux-kernel@...r.kernel.org, linux-doc@...r.kernel.org,
 jserv@...s.ncku.edu.tw, Yu-Chun Lin <eleanor15x@...il.com>
Subject: Re: [PATCH] Documentation/core-api: min_heap: update for variable
 types change

Yu-Chun Lin <eleanor15x@...il.com> writes:

> Update the documentation to reflect the change in variable types of
> 'nr' and 'size' from 'int' to 'size_t', ensuring consistency with
> commit dec6c0aac4fc ("lib min_heap: Switch to size_t").
>
> Signed-off-by: Yu-Chun Lin <eleanor15x@...il.com>
> ---
>  Documentation/core-api/min_heap.rst | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/core-api/min_heap.rst b/Documentation/core-api/min_heap.rst
> index 683bc6d09f00..9f57766581df 100644
> --- a/Documentation/core-api/min_heap.rst
> +++ b/Documentation/core-api/min_heap.rst
> @@ -47,8 +47,8 @@ Example:
>  
>      #define MIN_HEAP_PREALLOCATED(_type, _name, _nr)
>      struct _name {
> -        int nr;         /* Number of elements in the heap */
> -        int size;       /* Maximum number of elements that can be held */
> +        size_t nr;         /* Number of elements in the heap */
> +        size_t size;       /* Maximum number of elements that can be held */
>          _type *data;    /* Pointer to the heap data */

Applied, thanks.

jon

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ