summaryrefslogtreecommitdiff
path: root/Xtransutil.c
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 /Xtransutil.c
parent4e610d4bbcf29cca9dc5dbad29ca820996aaa8c7 (diff)
downloadxorg-lib-libxtrans-eb9a8904fbef61a57ff01c90627ead57055ed62b.tar.gz
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 'Xtransutil.c')
-rw-r--r--Xtransutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xtransutil.c b/Xtransutil.c
index bf52b37..5dd2453 100644
--- a/Xtransutil.c
+++ b/Xtransutil.c
@@ -242,7 +242,7 @@ TRANS(GetMyNetworkId) (XtransConnInfo ciptr)
char *addr = ciptr->addr;
char hostnamebuf[256];
char *networkId = NULL;
- char *transName = ciptr->transptr->TransName;
+ const char *transName = ciptr->transptr->TransName;
if (gethostname (hostnamebuf, sizeof (hostnamebuf)) < 0)
{