[PATCH xfs 3/3] Pass a const char * port to TRANS(ReopenCOTSServer).

Alan Coopersmith alan.coopersmith at oracle.com
Fri Feb 14 22:31:53 PST 2014


On 01/29/14 01:14 PM, Keith Packard wrote:
> This patch requires a related patch to libxtrans which accepts a const
> char * value for this parameter.
>
> The string passed is constant, so we should make sure that gets
> respected through the whole API stack.
>
> Signed-off-by: Keith Packard <keithp at keithp.com>
> ---
>   os/xfstrans.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/os/xfstrans.c b/os/xfstrans.c
> index 0dfeb59..db73e44 100644
> --- a/os/xfstrans.c
> +++ b/os/xfstrans.c
> @@ -36,7 +36,7 @@
>   OldListenRec *
>   TRANS(GetInetdListenInfo) (int fd)
>   {
> -    char *port = "0";
> +    const char *port = "0";
>       XtransConnInfo inetdCI;
>       OldListenRec *old_listen;
>       int portnum;
>

Reviewed-by: Alan Coopersmith <alan.coopersmith at oracle.com>

-- 
	-Alan Coopersmith-              alan.coopersmith at oracle.com
	 Oracle Solaris Engineering - http://blogs.oracle.com/alanc


More information about the xorg-devel mailing list