[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg-devel
Subject:    [PATCH xfs 3/3] Pass a const char * port to TRANS(ReopenCOTSServer).
From:       Keith Packard <keithp () keithp ! com>
Date:       2014-01-29 21:14:24
Message-ID: 1391030064-9855-4-git-send-email-keithp () keithp ! com
[Download RAW message or body]

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@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;
-- 
1.8.5.3

_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic