Cast void* to pointer* to appease some compilers.

When this privates.h is included in C++ builds, the compiler
complains about implicitly casting void* to void**.  This small
patch fixes that up.

Signed-off-by: James Jones <jajones@nvidia.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
James Jones 2010-06-18 17:28:15 -07:00 committed by Keith Packard
parent a71dbc03e6
commit 48cac27870

View File

@ -177,7 +177,7 @@ static inline pointer *
dixLookupPrivateAddr(PrivatePtr *privates, const DevPrivateKey key)
{
assert (key->size == 0);
return dixGetPrivateAddr(privates, key);
return (pointer *)dixGetPrivateAddr(privates, key);
}
/*