<HTML>
<HEAD>
<TITLE>Re: [PATCH] Cast void* to pointer* to appease some compilers.</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Keith,<BR>
<BR>
Pinging a second time. Can you please take a look at this patch? It relates to your recent devprivates rework.<BR>
<BR>
Thanks,<BR>
-James Jones<BR>
<BR>
On 6/25/10 5:51 PM, "James Jones" <<a href="jajones@nvidia.com">jajones@nvidia.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Could someone please review/apply this xserver patch? I’d like to get it in before 1.9 final. It’s trivial.<BR>
<BR>
Thanks,<BR>
-James<BR>
<BR>
On 6/18/10 5:28 PM, "James Jones" <<a href="jajones@nvidia.com">jajones@nvidia.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>When this privates.h is included in C++ builds, the compiler<BR>
complains about implicitly casting void* to void**. This small<BR>
patch fixes that up.<BR>
<BR>
Signed-off-by: James Jones <<a href="jajones@nvidia.com">jajones@nvidia.com</a>><BR>
---<BR>
include/privates.h | 2 +-<BR>
1 files changed, 1 insertions(+), 1 deletions(-)<BR>
<BR>
diff --git a/include/privates.h b/include/privates.h<BR>
index 4fed7d0..5ba9358 100644<BR>
--- a/include/privates.h<BR>
+++ b/include/privates.h<BR>
@@ -177,7 +177,7 @@ static inline pointer *<BR>
dixLookupPrivateAddr(PrivatePtr *privates, const DevPrivateKey key)<BR>
{<BR>
assert (key->size == 0);<BR>
- return dixGetPrivateAddr(privates, key);<BR>
+ return (pointer *)dixGetPrivateAddr(privates, key);<BR>
}<BR>
<BR>
/*<BR>
--<BR>
1.6.4<BR>
<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT></BLOCKQUOTE>
<DIV>
<HR>
</DIV>
<DIV>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. </DIV>
<DIV>
<HR>
</DIV>
<P></P>
</BODY>
</HTML>