Hm, is there a practical consequence of this? Seems like it would only affect applications trying to store a reference to lsearch in a function pointer of type "void (*)(const void *, void *, size_t *, size_t, int (*)(const void *, const void *))"; do those exist?
On Thu, Jul 17, 2014 at 5:38 PM, enh <[email protected]> wrote: > POSIX says lsearch's 'base' is void*, not const void*. > > http://pubs.opengroup.org/onlinepubs/9699919799/functions/lsearch.html > > openbsd gets this wrong in search.h and lsearch.c. (but lfind is > correct --- that should be const void*.) > > -e >
