public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* lfind(3) $3 type should be const
@ 2024-11-14 14:38 Alejandro Colomar
  2024-11-14 16:24 ` Gabriel Ravier
  0 siblings, 1 reply; 3+ messages in thread
From: Alejandro Colomar @ 2024-11-14 14:38 UTC (permalink / raw)
  To: libc-alpha; +Cc: linux-man

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

Hi!

lfind(3) does not modify its third argument, *nmemb.

It's already suspicious that it takes a pointer, but I guess it's due to
historic reasons, and that's already set in stone.

However, I don't see why we should not make it 'const'.  The function
doesn't use it as an output pointer.  Should I sent a patch for
constifying it?

Have a lovely day!
Alex

-- 
<https://www.alejandro-colomar.es/>

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

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

end of thread, other threads:[~2024-11-14 16:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-14 14:38 lfind(3) $3 type should be const Alejandro Colomar
2024-11-14 16:24 ` Gabriel Ravier
2024-11-14 16:36   ` Alejandro Colomar

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