public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] memchr.3: rawmemchr doesn't have an n parameter
@ 2023-06-23 16:54 наб
  2023-07-08 16:02 ` Alejandro Colomar
  0 siblings, 1 reply; 2+ messages in thread
From: наб @ 2023-06-23 16:54 UTC (permalink / raw)
  To: Alejandro Colomar (man-pages); +Cc: linux-man

[-- Attachment #1: Type: text/plain, Size: 750 bytes --]

The /point/ is it's unbounded;
  git grep -F 'void "' | grep -F '[]'
didn't return anything so I reverted it to a void*.

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
---
 man3/memchr.3 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/man3/memchr.3 b/man3/memchr.3
index e2916dc9a..030806aa0 100644
--- a/man3/memchr.3
+++ b/man3/memchr.3
@@ -23,7 +23,7 @@ .SH SYNOPSIS
 .BI "void *memchr(const void " s [. n "], int " c ", size_t " n );
 .BI "void *memrchr(const void " s [. n "], int " c ", size_t " n );
 .PP
-.BI "[[deprecated]] void *rawmemchr(const void " s [. n "], int " c );
+.BI "[[deprecated]] void *rawmemchr(const void *" s ", int " c );
 .fi
 .PP
 .RS -4
-- 
2.39.2

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: [PATCH] memchr.3: rawmemchr doesn't have an n parameter
  2023-06-23 16:54 [PATCH] memchr.3: rawmemchr doesn't have an n parameter наб
@ 2023-07-08 16:02 ` Alejandro Colomar
  0 siblings, 0 replies; 2+ messages in thread
From: Alejandro Colomar @ 2023-07-08 16:02 UTC (permalink / raw)
  To: наб; +Cc: linux-man


[-- Attachment #1.1: Type: text/plain, Size: 981 bytes --]

On 6/23/23 18:54, наб wrote:
> The /point/ is it's unbounded;
>    git grep -F 'void "' | grep -F '[]'
> didn't return anything so I reverted it to a void*.
> 
> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
> ---

Oops, my bad.  Patch applied.  Thanks,
Alex

>   man3/memchr.3 | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/man3/memchr.3 b/man3/memchr.3
> index e2916dc9a..030806aa0 100644
> --- a/man3/memchr.3
> +++ b/man3/memchr.3
> @@ -23,7 +23,7 @@ .SH SYNOPSIS
>   .BI "void *memchr(const void " s [. n "], int " c ", size_t " n );
>   .BI "void *memrchr(const void " s [. n "], int " c ", size_t " n );
>   .PP
> -.BI "[[deprecated]] void *rawmemchr(const void " s [. n "], int " c );
> +.BI "[[deprecated]] void *rawmemchr(const void *" s ", int " c );
>   .fi
>   .PP
>   .RS -4

-- 
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2023-07-08 16:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-23 16:54 [PATCH] memchr.3: rawmemchr doesn't have an n parameter наб
2023-07-08 16:02 ` Alejandro Colomar

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