[PATCH] Xi: constify XIChangeDeviceProperty()

Chase Douglas chase.douglas at canonical.com
Wed Feb 2 07:30:43 PST 2011


On 01/30/2011 10:54 PM, Peter Hutterer wrote:
> We don't modify "value", make it official.
> 
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>

Reviewed-by: Chase Douglas <chase.douglas at canonical.com>

> ---
>  Xi/xiproperty.c    |    2 +-
>  include/exevents.h |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/Xi/xiproperty.c b/Xi/xiproperty.c
> index b9f53f7..17835e2 100644
> --- a/Xi/xiproperty.c
> +++ b/Xi/xiproperty.c
> @@ -701,7 +701,7 @@ XIDeleteDeviceProperty (DeviceIntPtr device, Atom property, Bool fromClient)
>  int
>  XIChangeDeviceProperty (DeviceIntPtr dev, Atom property, Atom type,
>                          int format, int mode, unsigned long len,
> -                        pointer value, Bool sendevent)
> +                        const pointer value, Bool sendevent)
>  {
>      XIPropertyPtr               prop;
>      int                         size_in_bytes;
> diff --git a/include/exevents.h b/include/exevents.h
> index dc59430..2b22698 100644
> --- a/include/exevents.h
> +++ b/include/exevents.h
> @@ -69,7 +69,7 @@ extern _X_EXPORT int XIChangeDeviceProperty(
>          int                     /* format*/,
>          int                     /* mode*/,
>          unsigned long           /* len*/,
> -        pointer                 /* value*/,
> +        const pointer           /* value*/,
>          Bool                    /* sendevent*/
>          );
>  



More information about the xorg-devel mailing list