lfind(3) $3 type should be const
Alejandro Colomar
alx@kernel.org
Thu Nov 14 14:38:07 GMT 2024
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/>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20241114/37188ae3/attachment.sig>
More information about the Libc-alpha
mailing list