<<On Tue, 12 Jun 2001 15:53:18 +0300, Ruslan Ermilov <[EMAIL PROTECTED]> said:

> +     qsort((void *)sp->fts_array, nitems, sizeof(FTSENT *),
> +         (int (*) __P((const void *, const void *)))sp->fts_compar);

This is wrong.  The declaration of the comparison function should be
fixed, rather than papering over the mistake here.

(This is arguably a deficiency in the C standard.  qsort() should take
an additional state parameter for the comparison function, but
doesn't.)

-GAWollman


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to