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

Keith Packard keithp at keithp.com
Wed Jan 29 13:14:24 PST 2014


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



More information about the xorg-devel mailing list