[PATCH 01/19] Remove unneccesary casts from WriteToClient calls

Keith Packard keithp at keithp.com
Mon Jul 2 10:10:06 PDT 2012


Alan Coopersmith <alan.coopersmith at oracle.com> writes:

>  #define _WriteQueryAdaptorsReply(_c,_d) \
>    if ((_c)->swapped) SWriteQueryAdaptorsReply(_c, _d); \
> -  else WriteToClient(_c, sz_xvQueryAdaptorsReply, (char*)_d)
> +  else WriteToClient(_c, sz_xvQueryAdaptorsReply, _d)

I checked the callers of all of these macros to make sure this didn't
change anything given the lack of parens in the original versions...

Reviewed-by: Keith Packard <keithp at keithp.com>

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20120702/127c3f33/attachment.pgp>


More information about the xorg-devel mailing list