On Mon, 2016-09-05 at 11:23 +0100, Eric Engestrom wrote:

> > +static int
> > +compare(const void *l, const void *r)
> > +{
> > +    const char *s = *(const char **)r;
>
> Shouldn't we do the same with `l`?

No. 'l' is the key we're looking for (the function name), r is the
current element of the array of char* we're searching. We want to
dereference r once to get the string we're comparing to, but *l is just
'g'.

Split series sent.

- ajax
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to