Re: [PATCH 21/24] tsearch.3: Fix prototype

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Rasmus,

On 05/21/2014 04:57 PM, Rasmus Villemoes wrote:
> The rootp argument to tfind is void *const void*, not const void **.

Applied, but in the changelog, I guess you meant to write

    The rootp argument to tfind is void *const *, not const void **

Right? (I amended the commit message.)

Cheers,

Michael


> Signed-off-by: Rasmus Villemoes <rv@xxxxxxxxxxxxxxxxxx>
> ---
>  man3/tsearch.3 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/man3/tsearch.3 b/man3/tsearch.3
> index 83eceae..618fb54 100644
> --- a/man3/tsearch.3
> +++ b/man3/tsearch.3
> @@ -32,7 +32,7 @@ tsearch, tfind, tdelete, twalk, tdestroy \- manage a binary tree
>  .BI "void *tsearch(const void *" key ", void **" rootp ,
>  .BI "                int (*" compar ")(const void *, const void *));"
>  .sp
> -.BI "void *tfind(const void *" key ", const void **" rootp ,
> +.BI "void *tfind(const void *" key ", void *const *" rootp ,
>  .BI "                int (*" compar ")(const void *, const void *));"
>  .sp
>  .BI "void *tdelete(const void *" key ", void **" rootp ,
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux