[PATCH 1/7] Xi: remove superfluous cast.

Hans de Goede hdegoede at redhat.com
Thu Jan 30 00:37:38 PST 2014


Hi,

On 01/30/2014 12:51 AM, Peter Hutterer wrote:
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
> ---
>  Xi/listdev.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Xi/listdev.c b/Xi/listdev.c
> index 470fb52..6a10091 100644
> --- a/Xi/listdev.c
> +++ b/Xi/listdev.c
> @@ -121,7 +121,7 @@ SizeDeviceInfo(DeviceIntPtr d, int *namesize, int *size)
>  static void
>  CopyDeviceName(char **namebuf, const char *name)
>  {
> -    char *nameptr = (char *) *namebuf;
> +    char *nameptr = *namebuf;
>  
>      if (name) {
>          *nameptr++ = strlen(name);
> 

Looks good:

Reviewed-by: Hans de Goede <hdegoede at redhat.com>


More information about the xorg-devel mailing list