lfind(3) $3 type should be const

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux