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 <[email protected]>
---
 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

_______________________________________________
[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