[Mesa-dev] [PATCH] glvnd: Fix dynamic GLX entrypoint lookup

Adam Jackson ajax at redhat.com
Wed Sep 14 18:06:24 UTC 2016


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


More information about the mesa-dev mailing list