summaryrefslogtreecommitdiff
path: root/Xtransint.h
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-25 11:18:26 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-10-01 08:55:53 -0700
commiteb9a8904fbef61a57ff01c90627ead57055ed62b (patch)
tree1cd0de80e0b9db38aa1b33cf4f6c9dc9bc4e2e5f /Xtransint.h
parent4e610d4bbcf29cca9dc5dbad29ca820996aaa8c7 (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 'Xtransint.h')
-rw-r--r--Xtransint.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Xtransint.h b/Xtransint.h
index 1052777..3bce8dc 100644
--- a/Xtransint.h
+++ b/Xtransint.h
@@ -144,7 +144,7 @@ struct _XtransConnInfo {
typedef struct _Xtransport {
- char *TransName;
+ const char *TransName;
int flags;
#ifdef TRANS_CLIENT
@@ -159,7 +159,7 @@ typedef struct _Xtransport {
#endif /* TRANS_CLIENT */
#ifdef TRANS_SERVER
- char ** nolisten;
+ const char ** nolisten;
XtransConnInfo (*OpenCOTSServer)(
struct _Xtransport *, /* transport */
char *, /* protocol */