On Thu, Jul 18, 2013 at 07:02:51PM -0700, Alan Coopersmith wrote:
> Needed to fix const string warnings in iceauth - functions already
> copy provided arguments to temporary local buffer for modifications.
> 
> Signed-off-by: Alan Coopersmith <[email protected]>

Reviewed-by: Peter Hutterer <[email protected]>


Cheers,
   Peter

> ---
>  include/X11/ICE/ICEutil.h |    4 ++--
>  src/authutil.c            |    4 ++--
>  2 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/include/X11/ICE/ICEutil.h b/include/X11/ICE/ICEutil.h
> index 9c6b12f..dbf1490 100644
> --- a/include/X11/ICE/ICEutil.h
> +++ b/include/X11/ICE/ICEutil.h
> @@ -81,14 +81,14 @@ extern char *IceAuthFileName (
>  );
>  
>  extern int IceLockAuthFile (
> -    char *           /* file_name */,
> +    const char *     /* file_name */,
>      int                      /* retries */,
>      int                      /* timeout */,
>      long             /* dead */
>  );
>  
>  extern void IceUnlockAuthFile (
> -    char *           /* file_name */
> +    const char *     /* file_name */
>  );
>  
>  extern IceAuthFileEntry *IceReadAuthFileEntry (
> diff --git a/src/authutil.c b/src/authutil.c
> index ad29dbb..96ce3a0 100644
> --- a/src/authutil.c
> +++ b/src/authutil.c
> @@ -128,7 +128,7 @@ IceAuthFileName (void)
>  
>  int
>  IceLockAuthFile (
> -     char    *file_name,
> +     const char *file_name,
>       int     retries,
>       int     timeout,
>       long    dead
> @@ -204,7 +204,7 @@ IceLockAuthFile (
>  
>  void
>  IceUnlockAuthFile (
> -     char    *file_name
> +     const char      *file_name
>  )
>  {
>  #ifndef WIN32
> -- 
> 1.7.9.2
> 
> _______________________________________________
> [email protected]: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
> 
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to