[PATCH 2/2] xfree86: constify InputDriverPtr->driverName and default_options

Chase Douglas chase.douglas at canonical.com
Mon Jun 4 10:12:53 PDT 2012


On 05/28/2012 10:52 PM, Peter Hutterer wrote:
> Already treated as const anyway by all drivers.
> 
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
> ---
>  hw/xfree86/common/xf86Xinput.h |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/hw/xfree86/common/xf86Xinput.h b/hw/xfree86/common/xf86Xinput.h
> index 6ccccf1..35c38a5 100644
> --- a/hw/xfree86/common/xf86Xinput.h
> +++ b/hw/xfree86/common/xf86Xinput.h
> @@ -68,14 +68,14 @@
>  /* This holds the input driver entry and module information. */
>  typedef struct _InputDriverRec {
>      int driverVersion;
> -    char *driverName;
> +    const char *driverName;
>      void (*Identify) (int flags);
>      int (*PreInit) (struct _InputDriverRec * drv,
>                      struct _InputInfoRec * pInfo, int flags);
>      void (*UnInit) (struct _InputDriverRec * drv,
>                      struct _InputInfoRec * pInfo, int flags);
>      pointer module;
> -    char **default_options;
> +    const char **default_options;
>  } InputDriverRec, *InputDriverPtr;
>  
>  /* This is to input devices what the ScrnInfoRec is to screens. */

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


More information about the xorg-devel mailing list