diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-09-25 11:18:26 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-10-01 08:55:53 -0700 |
commit | eb9a8904fbef61a57ff01c90627ead57055ed62b (patch) | |
tree | 1cd0de80e0b9db38aa1b33cf4f6c9dc9bc4e2e5f /Xtranslcl.c | |
parent | 4e610d4bbcf29cca9dc5dbad29ca820996aaa8c7 (diff) |
Add const attributes to fix gcc -Wwrite-strings warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'Xtranslcl.c')
-rw-r--r-- | Xtranslcl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Xtranslcl.c b/Xtranslcl.c index 7acc907..e5b3833 100644 --- a/Xtranslcl.c +++ b/Xtranslcl.c @@ -1382,7 +1382,7 @@ TRANS(SCOReopenServer)(XtransConnInfo ciptr, int fd, char *port) */ typedef struct _LOCALtrans2dev { - char *transname; + const char *transname; #ifdef TRANS_CLIENT @@ -1643,7 +1643,7 @@ static LOCALtrans2dev LOCALtrans2devtab[] = { #define NUMTRANSPORTS (sizeof(LOCALtrans2devtab)/sizeof(LOCALtrans2dev)) -static char *XLOCAL=NULL; +static const char *XLOCAL=NULL; static char *workingXLOCAL=NULL; static char *freeXLOCAL=NULL; @@ -1658,7 +1658,7 @@ static char *freeXLOCAL=NULL; #endif static void -TRANS(LocalInitTransports)(char *protocol) +TRANS(LocalInitTransports)(const char *protocol) { prmsg(3,"LocalInitTransports(%s)\n", protocol); @@ -2318,7 +2318,7 @@ TRANS(LocalCloseForCloning)(XtransConnInfo ciptr) */ #ifdef TRANS_SERVER -static char * local_aliases[] = { +static const char * local_aliases[] = { # ifdef LOCAL_TRANS_PTS "pts", # endif |