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:
signature.asc
Description: PGP signature