[PATCH] Cast void* to pointer* to appease some compilers.

James Jones jajones at nvidia.com
Fri Jun 18 17:28:15 PDT 2010


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 at nvidia.com>
---
 include/privates.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/privates.h b/include/privates.h
index 4fed7d0..5ba9358 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);
 }
 
 /*
-- 
1.6.4


-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------


More information about the xorg-devel mailing list