summaryrefslogtreecommitdiff
path: root/Xext/sync.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-04 23:21:34 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-23 12:15:07 -0800
commit05f589d464a961aea8d25632a390fb66a06cd186 (patch)
tree76ed00ac377c882f2ba7f1c8f8f19926375d6aca /Xext/sync.c
parent232f1ddf3d060f3ce9d2ebd35f33b1294cac380e (diff)
Fix gcc -Wwrite-strings warnings in various extensions
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'Xext/sync.c')
-rw-r--r--Xext/sync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Xext/sync.c b/Xext/sync.c
index 3b257f73b..23360f002 100644
--- a/Xext/sync.c
+++ b/Xext/sync.c
@@ -971,7 +971,7 @@ static int FreeCounter(void *, XID);
pointer
SyncCreateSystemCounter(
- char *name,
+ const char *name,
CARD64 initial,
CARD64 resolution,
SyncCounterType counterType,
@@ -1308,7 +1308,7 @@ ProcSyncListSystemCounters(ClientPtr client)
for (i = len = 0; i < SyncNumSystemCounters; i++)
{
- char *name = SysCounterList[i]->pSysCounterInfo->name;
+ const char *name = SysCounterList[i]->pSysCounterInfo->name;
/* pad to 4 byte boundary */
len += pad_to_int32(sz_xSyncSystemCounter + strlen(name));
}