From 48cac27870992f6bde2c48429ff03c0a7606d5c1 Mon Sep 17 00:00:00 2001 From: James Jones Date: Fri, 18 Jun 2010 17:28:15 -0700 Subject: 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 Reviewed-by: Keith Packard Signed-off-by: Keith Packard --- include/privates.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/privates.h b/include/privates.h index 4fed7d058..5ba935817 100644 --- a/include/privates.h +++ b/include/privates.h @@ -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); } /* -- cgit v1.2.3