diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-04 23:21:34 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-23 12:15:07 -0800 |
commit | 05f589d464a961aea8d25632a390fb66a06cd186 (patch) | |
tree | 76ed00ac377c882f2ba7f1c8f8f19926375d6aca /Xi | |
parent | 232f1ddf3d060f3ce9d2ebd35f33b1294cac380e (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 'Xi')
-rw-r--r-- | Xi/extinit.c | 4 | ||||
-rw-r--r-- | Xi/xiproperty.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Xi/extinit.c b/Xi/extinit.c index 7724f5f5a..a2c807b46 100644 --- a/Xi/extinit.c +++ b/Xi/extinit.c @@ -162,7 +162,7 @@ Mask ExtExclusiveMasks[EMASKSIZE]; static struct dev_type { Atom type; - char *name; + const char *name; } dev_type[] = { { 0, XI_KEYBOARD}, { @@ -1127,7 +1127,7 @@ IResetProc(ExtensionEntry * unused) */ void -AssignTypeAndName(DeviceIntPtr dev, Atom type, char *name) +AssignTypeAndName(DeviceIntPtr dev, Atom type, const char *name) { dev->xinput_type = type; dev->name = strdup(name); diff --git a/Xi/xiproperty.c b/Xi/xiproperty.c index f72603028..88de11959 100644 --- a/Xi/xiproperty.c +++ b/Xi/xiproperty.c @@ -48,7 +48,7 @@ static struct dev_properties { Atom type; - char *name; + const char *name; } dev_properties[] = { {0, XI_PROP_ENABLED}, {0, XI_PROP_XTEST_DEVICE}, |