]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
memchr.3: rawmemchr doesn't have an n parameter
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Fri, 23 Jun 2023 16:54:37 +0000 (18:54 +0200)
committerAlejandro Colomar <alx@kernel.org>
Sat, 8 Jul 2023 16:32:59 +0000 (18:32 +0200)
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>
Fixes: c64cd13e0025 ("Various pages: SYNOPSIS: Use VLA syntax in 'void *' function parameters")
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man3/memchr.3

index e2916dc9a9786dc4ed38cc43294c6a04c5cba44b..030806aa004be02fa115b0e50dfbd1d90604a5a8 100644 (file)
@@ -23,7 +23,7 @@ Standard C library
 .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